View Single Post
  #4 (permalink)  
Old 07-06-2007, 10:33 AM
Michel Michel is online now
Senior Member
 
Join Date: Feb 2006
Posts: 553
Michel is on a distinguished road
Quote:
Originally Posted by ralph.ronnquist View Post
Or maybe:
PHP Code:
datetime aDateTime[n] = StrToTimeeDate[n] ) + StrToTimeeTime[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]); 

Last edited by Michel; 07-06-2007 at 10:35 AM.
Reply With Quote