Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Formating datetime textfield
Message
From
05/04/2000 13:00:19
 
 
To
05/04/2000 12:16:21
Joao Godinho
Fredesenvolv, Lda
Lisbon, Portugal
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00355743
Message ID:
00355768
Views:
27
There is no built in function that will extract only the time part of a datetime field, AFAIK. Assuming that SET CENTURY is ON, you can build a function that will do it:
FUNCTION TTOT
LPARAMETERS ttDateTime

IF VARTYPE(ttDateTime) <> "T"
   RETURN ""
ENDIF

RETURN SubStr(TTOC(ttDateTime), 12)
HTH
>What i have to do for format a datetime textfield showing only the HH:MM ( 24h )
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform