Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dates
Message
From
04/03/2003 18:41:36
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
04/03/2003 17:47:51
Mike Yearwood
Toronto, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: Dates
Miscellaneous
Thread ID:
00761251
Message ID:
00761268
Views:
25
>Hi All
>
>I'm looking for a piece of code that can return a valid date given a variety of strings that may be dates. 19980216 returns 02/16/1998 and 2/12/94 returns 02/12/1994 etc.
>
>Any help would be appreciated.
>
>Thanks

I have never seen anything like it, but ctod() can help with the second case. Be sure to use the correct SET DATE setting, and be aware that a date like 2/12/94 can be ambiguous (here in L.America, we would interpret it as 12 February 1994).
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform