EasyLanguage Reserved Words & Functions

FormatTime (Reserved Word)

image\trumpet2.gif Disclaimer

This reserved word returns a formatted string expression representing the time portion of the specified DateTime value.

FormatTime("hh:mm:ss tt", dDateTime ));

Where "hh" is the hour, "mm" is the minutes", "ss" is the seconds, and "tt" is AM or PM in the string format expression, and where. dDateTime is a double-precision decimal expression representing the time (since midnight)

Remarks

If a specific time is entered for the numeric expression, it must be a valid time, expressed in DateTime format.

Examples

strVar =(FormatTime("hh:mm:ss tt",37561.61200));  //returns a value of  "02:41:17 PM" for the specified DateTime of 37561.61200.