I now have a demand, need after the new start time and end time in LayUI input insurance aging click save again, after the implementation of new prescription format for starting time - termination time, now my insurance aging fields in the database as a timestamp type, now how to deal with in order to realize new? Entity class, every comment, the background of aging fields did conversion processing,
CodePudding user response:
Didn't see you mean... Since you said a background, has the entity class, that should be added, you ask is this?
CodePudding user response:
I mean the insurance of a field in the database, it represents the start time and end time, in the database for the timestamp type, I now click save after a fault,
CodePudding user response:
Tip said request date/time types, you the whole date together, the two cannot be changed,
Is calculated according to the start-stop time of limitation of insurance should not be made with a string
CodePudding user response:
Then you should ask: "2021-03-24" how to date format into a timestamp... Can you not to say that the background has been done into processing... Front end use: the Date. The parse ()
The console. The log (Date. Parse (' 2021/03/24 00:00:00 '));