|
-
Apr 6th, 2012, 10:52 AM
#2
Re: Converting Gregorian to JDE Julian & back
Ok, I've done some playing with it and it looks like I simply parse the year:
For the century I take the 2nd digit in the year and I add 1 to it, so for 2012 I take the 0 and add 1.
For the current year, I just take the last 2 digits from the year, which is the 12.
For the day of the year, luckily .Net's Date object has a DayOfYear property I can use, which for today returns "97", all I have to do is format it in a "###" fasion so 97 shows as 097.
Now the hard part, taking "112097" and parsing it into a "06/04/2012" date.
Last edited by JuggaloBrotha; Jan 28th, 2013 at 02:47 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|