Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning date/time in yymmdd_hh_mm_ss
Message
 
 
To
11/08/2004 09:14:50
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00932290
Message ID:
00932310
Views:
18
>You are the man Sergey. Just a quick question... I have century set off, but yet it continues to show 2004. How can I make it just 04?

The TTOC(,1) function returns character representaion of the datetime suitable for an index key. It's independent of any date/time settings.
? SUBSTR(TRANSFORM(TTOC(DATETIME(),1), "@R 99999999_99_99_99"),3)
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform