/ Forums / Advansys Formativ / Creating Solutions with Formativ / StartDate / Reply To: StartDate
February 15, 2010 at 3:23 pm
#8165
See the Visual Basic Scripting Guide which provides various Date functions. You can access the guide from GroupWise – Help – Formativ Help menu or from Formativ IDE – Help menu.
Sample code below uses FormatDateTime() funstion to access date & time, also uses Year(), Month(), etc function to extract part of the date.
msgbox FormatDateTime(iStartDate, vbShortDate) msgbox FormatDateTime(iStartDate, vbShortTime) msgbox "Year: " & Year(iStartDate) & ", Month: " & Month(iStartDate) &_ ", Day: " & Day(iStartDate) & ", Hour: " & Hour(iStartDate) &_ ", Minute: " & Minute(iStartDate) & ", Second: " & Second(iStartDate)
Regards,
Advansys Support