LocTime$

 

Purpose:

Returns a string with the valid time format for the entered country.

Parameter:

Date            Value to be formatted

String         (optional) Country code/ISO Code of country, whose format is to be used. Format: <ISO639>-<ISO3166> e.g. de-de or en-us.

http://msdn.microsoft.com/en-us/library/0h88fahh%28VS.85%29.aspx

Number         (optional) Format value: 0=normal (default), 1=24h format, 2=no AM/PM, 3=24h format, no AM/PM, format value +10 = no seconds, format value +20 = no minutes and no seconds.

Return value:

String

Example:

LocTime$ (Now(),"en-us")     Result: current system time

LocTime$ (Now(),"",11)        Result: always 24h format, no seconds