Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting weird date format
Message
From
04/09/1997 10:11:54
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
03/09/1997 10:49:46
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00048265
Message ID:
00048493
Views:
23
> >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. > > What about about 245 to the first day of the year which will give you the > current date for 245th day. 244 should be added, really. 1 stands for first day of year, so if you added 1 to first day of year you'd get january the 2nd... Here's a little aid, FDOY() function (first day of year): Para _date if empty(_date) _date=date() endif Retu gomo(_date,1-month(_date))-day(_date)+1 Besides, I've seen this YYYDDD format already... on meat cans :)

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform