Navigation: Function Reference > General Utility Functions > strToTime()

strToTime()

Top  Previous  Next

strToTime( time: String ) : TDateTime;

 

Attempts to convert a string representation of time into a TDateTime value.

 

Parameters

 

time

string value

 

var myTime: TDateTime;

 

myTime := strToTime( '5pm');

myTime := strToTime( '13:05' );

myTime := strToTime( '11:24:02' );