Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date problem
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00432546
Message ID:
00432575
Views:
19
Victor,

>I actually had already tried that and had the same problem..but I did find a way around it by using the CTOD() gizmo.

That's interesting that you had a problem, because this code works fine for me once I fixed the minor typo in it.

lcYear = "2000"
lcMonth = "10"
lcDay = "1"
x= {^&lcYear-&lcMonth-&lcDay}

Plesae notes the vars are character not numeric. Also be careful with CTOD as it wis dependant on the SET DATE setting and can give you different results when the SET DATE is changed. If you want to use a function to do this use the DATE() function instead.
Previous
Reply
Map
View

Click here to load this message in the networking platform