>Hi everybody,
>
>I am wondering how can I display datetime value using
>
>mm/dd/yyyy hh:mm:ss format where hours are in 24 format? Using transform(datetime()) returns date with AM/PM settings. Also, I may want to display it just up to hh:mm (no seconds).
>
>Any ideas?
>
>Thanks in advance.
PUBLIC oform1
oform1=NEWOBJECT("form1")
oform1.Show
RETURN
DEFINE CLASS form1 AS form
ADD OBJECT text1 AS textbox WITH ;
DateFormat = 1, ;
DateMark = "/", ;
Hours = 24, ;
Seconds = 0, ;
ControlSource = "(DATETIME())", ;
Height = 23, ;
Left = 72, ;
Top = 72, ;
Width = 228
ENDDEFINE