Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replace Date field with Character value
Message
From
04/10/1999 11:09:15
 
 
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:
00272322
Views:
21
I would try something like this:


replacde DOB with ;
date(val(substr(tmp, 1, 4)), val(substr(tmp, 5, 2)), val(substr(tmp, 7, 2))) ;
in clients


Hope it helps

Oscar

>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???????
>
>
>Thanks.
Previous
Reply
Map
View

Click here to load this message in the networking platform