Date and Time controls

I am trying to find the best way to alter a datetime field with seperate date and time elements. Not so simple since altering to seperate elements with the same dataprovider leaves me with rubbish. That is, when I change the time the date gets screwed and the other way around. Not so strange BTW or is there another way?

What I am looking for are nice controls like the one on the screendump. Or, if that is not possible, it would be nice if I could replace the built in calendar with my own calendar form. Would that be possible?

Or are there some nice beans?

Thanks!!!

And, not for the first time, I forgot to attach the image :oops:

You can create separate methods for pushing days, hours, minutes etc.

example:
var javascriptDate = columnInDatabaseDate //set javascript variable with database content
javascriptDate.setHours( javascriptDate.getHours() + 1 ) //increase with one hour
columnInDatabaseDate = javascriptDate
Check out the other date functions in the JSLib inside your method editor.

btw:
I’m working on a default calendar that generates year/month/week/day view in HTML together with data from your database.
It consists of a couple of global scripts that can easily be copy pasted into your own solution. de selected date becomes available for use as key to any table you want (eg: actions/appointments etc.)