Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: Date Time Format UTC long short System.DateTime System.Int32 Daylight Saving Time
;Convert WIL YMDHMS to a DateTime Object arrYMDHMS = Arrayize( TimeYmdHms(), ":" ) objYear = ObjectClrNew( 'System.Int32', arrYMDHMS[0] ) objMonth = ObjectClrNew( 'System.Int32', arrYMDHMS[1] ) objDay = ObjectClrNew( 'System.Int32', arrYMDHMS[2] ) objHour = ObjectClrNew( 'System.Int32', arrYMDHMS[3] ) objMin = ObjectClrNew( 'System.Int32', arrYMDHMS[4] ) objSec = ObjectClrNew( 'System.Int32', arrYMDHMS[5] ) objDT = ObjectClrNew( 'System.DateTime', objYear, objMonth, objDay, objHour, objMin, objSec ) strDate = objDT.ToLongDateString strDate = strDate:@CRLF:objDT.ToLongTimeString strDate = strDate:@CRLF:objDT.ToUniversalTime:"(UTC)" If objDT.IsDaylightSavingTime ;Indicates whether this instance of DateTime is within the daylight saving time range for the current time zone. strDate = strDate :@CRLF: "Currently daylight saving time." EndIf Pause( 'About Today', strDate ) Exit
Article ID: W17816
Filename: Convert WIL YMDHMS to DateTime Object.txt
File Created: 2014:03:10:13:00:18
Last Updated: 2014:03:10:13:00:18