Using the grails datepicker control, is there a way to have it save time precision, but only show the user up to the day? The user only cares about that day, but I need to add the time of day that entry was persisted into the db.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From what I know, datepicker doesnt save precision and sets some default values on the fields that are ommited.
If you need to persist the time of day entry was persisted, you can use
dateCreatedlastUpdatedwhich will be automatically set when object will be persisted for the first time (dateCreated) or every time object will be modified (lastUpdated).