[Gambas-user] User-defined format characters for dates (AM/PM)

Benoît Minisini gambas at ...1...
Sat May 1 01:04:27 CEST 2010


> Is there any way to use the format command to get "05:32 PM"?
> 
> Format (Now, "hh:nn") gives me the 24 hour format:  17:32
> 

Format(Now, "hh:nn AM/PM") will give you what you want, provided that your 
current language use AM/PM notation.

Regards,

-- 
Benoît Minisini




More information about the User mailing list