Quote:
Originally Posted by ralph.ronnquist
Or maybe:
PHP Code:
datetime aDateTime[n] = StrToTime( eDate[n] ) + StrToTime( eTime[n] );
|
This is certainly wrong, the use of StrToTime() is :
datetime StrToTime( string value)
Converts string in the format "yyyy.mm.dd hh:mi" to datetime type (the amount of seconds that have passed since 1 Jan., 1970).
So the suggestion of Ryan should work if eDate[] and eTime[] are right formated (yyyy.mm.dd) and (hh:mi)
PHP Code:
datetime aDateTime[n] = StrToTime(eDate[n]+" "+eTime[n]);