Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date conversion
Message
From
20/03/2002 13:40:11
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00634946
Message ID:
00635134
Views:
17
>>
>>Jim,
>>First you should decide on rollover year (if all 1900 then 0)
>>
>>set century to 19 rollover 2
>>set date to mdy
>>replace all datefoal with ctod(trans(foaldate,'@R 99/99/99'))
>>
>>Cetin
>
>Hi Cetin, Gregory, Hilmar
>
>Thanks, this works and I now understand how it works now.
>
>Do you know if the .dat file is able to store dates in the same format as a vfp table.
>
>If so then the supplier could use this type and I wouldn't have to do a conversion.
>
>I was going to ask them but thought I'd check first to see if it was even possible.
>
>Thanks all for the help.
>
>Jim

He could cotinue to store as text but include century. If he does in YYYYMMDD format that's exactly how VFP holds date in dbf. Append from ...SDF would directly work.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform