Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
About the DATE format
Message
From
03/07/1999 11:52:20
 
 
To
03/07/1999 11:24:38
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00231431
Message ID:
00237216
Views:
23
>>>Just made me wonder, is there a format code for a Transform function which would give a date string in a strict date format?
>>>
>>>I'm thinking of something shorthand for
>>>
>>>set date ymd
>>>set cent on
>>>cStrictDateExpr="{^"+transform(date(), "@R 9999-99-99")+"}"
>>>set cent &oldCent
>>>set date &oldDate
>>
>>Curious- why would you need this? If you have a date value already created in a variable, then it is not ambigous. Only constants are. The strict date format is not meant for user display...
>
>Settings table, .ini files and such, where data of various types should be represented as strings, and later converted from strings to real data, using Eval() - this should make them unambiguous. Namely, I have a table where I store some local config values, and it takes the dates when were some maintenance chores last done.

Still unclear... why wouldn't you store the date in a date field?

In the registry or ini files, I can see maybe, because he date would be stored in a string.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform