Reused umbraco datepicker to create a timepicker.
Also, this is bare minimum meaning no required field validation or error message. I just wanted it to work
I have actually submitted a PR a while ago that extend datepicker with further options and basen on the format choose date, time or date and time picker. http://issues.umbraco.org/issueMobile/U4-7301
I actually have a need for just what you created, and copied it into my project. Generally, it works great, but sometimes I've noticed that it doesn't save the selected data in one of the time fields (I have two on my doctype) on "Save & Publish".
It seems not to work when you toggle the popup with the time icon. If you click directly into the time box it saves every time.
My quick fix was to remove the time icon from the HTML
Umbraco 7 TimePicker datatype
Reused umbraco datepicker to create a timepicker. Also, this is bare minimum meaning no required field validation or error message. I just wanted it to work
https://github.com/avatart0ph/umbracoupgrade6to7/tree/master/customizations/DataType%20-%20TimePicker/App_Plugins/TimePicker
Example output could be: April 04, 2016 09:30 AM - 09:45 AM April 05, 2016 01:30 PM - 02:30 PM
I have actually submitted a PR a while ago that extend datepicker with further options and basen on the format choose date, time or date and time picker. http://issues.umbraco.org/issueMobile/U4-7301
It need to be reviewed by HQ.
/Bjarne
thanks. in the meantime, i have to use my solution. we havent updated our umbraco because updating the files caused a crash in prod but not in dev.
Hi denisedelbando!
I actually have a need for just what you created, and copied it into my project. Generally, it works great, but sometimes I've noticed that it doesn't save the selected data in one of the time fields (I have two on my doctype) on "Save & Publish".
Have you come across that issue?
Hi Heather Floyd,
Even I am facing the same issue. Sometimes it doesn't save the selected data in one of the time fields.
Do you have any idea that, how to compare start time and end time on Save & Publish (Without using content service events)?
Thank You.
Sorry, Suman, I haven't been able to troubleshoot this.
It seems not to work when you toggle the popup with the time icon. If you click directly into the time box it saves every time. My quick fix was to remove the time icon from the HTML
is working on a reply...