I need hep with this problem i am facing. I need to set a minimum Date & time on the Date/Time Picker. Right now the plug in only accepts date or time separately. What i am trying to do is set a minimum date of today +8 hours, so for example if the date / time is 27/09/2016 00:00 then the available dates and times must be greater than 27/09/2016 08:00
The problem I am facing is similar. The problem with the date picker is that it treats days and hours seperatly.
So if the minimum date is today and the minimum hour is 7 pm the subsequent days are also limited to 7 pm. What I want is to limit the today’s date to 7 pm only. Future dates and time not to be effected.
Yeah, haven’t managed to solve that yet. I skipped it and “opened” the date picker instead. Not the optimal way in my mind, but better than half working solution.
I’m very interested to hear about @NigelG situation.
For what I understand, you can just use decimal numbers to get the minutes (e.g. 0.5 for 00:30). If you extract that from a date format, juste make sure that you first extract minutes divided by 60 and then extract hours rather than the other way round (otherwise it will divide both hours and minutes per 60 and probably not give the decimal number you expect).