/ Forums / Advansys Formativ / Creating Solutions with Formativ / Appointment duration from DateTime controls / Reply To: Appointment duration from DateTime controls

#7905
Support 1
Participant

    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