Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replace Date field with Character value
Message
 
To
04/10/1999 10:56:45
Jolene Dicks
Human Resources Development Canada
St. John's, Newfoundland, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00272313
Message ID:
00272317
Views:
29
>Hi,
>
>This is simple, I know. But I can't figure it out.
>
>I am trying to replace a date field (date of birth) with a character value. The character value is as follows:
>
>19650824
>
>I have SET DATE TO YMD for this and I use the CTOD() function to do the conversion from character to date. However it is returning a blank date.
>
>Tmp="19650824"
>Replace Client.DOB with CTOD(TMP)
>
>What am I doing wrong???????
>
>
Hi Jolene,

You really can't do this, since VFP can't see any delimiters and evalutes it as an invalid date. Just FYI, however, the format you're using is exactly the same way VFP stores dates internally.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform