Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting weird date format
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Converting weird date format
Miscellaneous
Thread ID:
00048265
Message ID:
00048265
Views:
67
I am writing a utility to slice and dice a data file imported from another application and appending it to a VFP table for report running and queries.

One section of the data contains the date in the following format YYYDDD where YYY is the year (097) and DDD is the day number of the current year (245). I'm quite familiar with VFP's date functions and have converted form a number of formats in the past, but this one has me stumped. Unless I have completely missed it, I don't know of a "day of year" function in VFP.

Has anyone come accross this type of date format before and more importantly, has anyone written a utility to convert this six character slice of data into a date?

Thanks, AL
Al Williams

Anola MB, CANADA
Next
Reply
Map
View

Click here to load this message in the networking platform