Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SPT And a Calculated Field
Message
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01351079
Message ID:
01351102
Views:
23
>>I am tring to do the impossible I think.
>>
>>I need to pull data from a remote data source. One of the fields is a date field with the format 1070701(July 1, 2007). I want to add another calculated field showing a date(normal format) that is this date plus 3 years.
>>
>>Any possibility this can be done?
>
>How 1070701 translates into July 1, 2007?

Would CAST('20' + SUBSTRING(DateFiled,2,6) as Datetime) as ActualDate work? I don't have SQL Server here to test right now.

If it works, then just use DATEADD function.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform