/ Forums / Advansys Formativ / Creating Solutions with Formativ / Appointment duration from DateTime controls / Reply To: Appointment duration from DateTime controls
October 31, 2007 at 3:13 pm
#7905
I don’t think it’s possible to assign a value like “10/31/3007” to DateTimePicker.Date, which is really a floating point number.
Have you tried using the VBScript functions DateSerial(year, month, day) and TimeSerial(hour, minute, second)? You could use them to do something like:
DateTimePicker.DateTime = DateSerial(2007, 10, 31) + TimeSerial(11, 54, 0)
Regards,
Advansys Support