Split a string containing Date and Time into two separate Arrays
#include <Date.au3>
_DateTimeSplit ( $sDate, ByRef $aDatePart, ByRef $iTimePart )
$sDate | Any of these formats: "yyyy/mm/dd[ hh:mm[:ss]]" "yyyy/mm/dd[Thh:mm[:ss]]" "yyyy-mm-dd[ hh:mm[:ss]]" "yyyy-mm-dd[Thh:mm[:ss]]" "yyyy.mm.dd[ hh:mm[:ss]]" "yyyy.mm.dd[Thh:mm[:ss]]" |
$aDatePart | array that contains the Date. $aDatePart[0] number of values returned |
$iTimePart | array that contains the Time. $aTimePart[0] number of values returned |
Success: | Date and Time into two separate Arrays. |
Failure: | 0 and sets the @error flag to non-zero. |
@error: | 1 - Invalid Input Date |
_DateAdd, _DateDiff, _DayValueToDate