Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date
Message
From
13/05/2002 18:01:36
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Re: Date
Miscellaneous
Thread ID:
00655873
Message ID:
00655883
Views:
27
Mahmood,

Look at ctot() and ttoc() functions. To change the current record's year to 2002 (assuming you have date set to American):
set century on
replace timeField1 with ctot(stuff(ttoc(timeField1),7,4,"2002"))
>Hi All:
> I have a datetime field and I want to change the year to 2002. How can I accomplish this?
> I.E. 05/25/2001 5:25:23P.M. needs to be 05/25/2002 5:25:23 P.M.
>Thanks
Steve Gibson
Previous
Reply
Map
View

Click here to load this message in the networking platform