Results 1 to 7 of 7

Thread: [RESOLVED] Converting Gregorian to JDE Julian & back

Threaded View

  1. #2

    Thread Starter
    PowerPoster JuggaloBrotha's Avatar
    Join Date
    Sep 2005
    Location
    Lansing, MI; USA
    Posts
    4,286

    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.
    Currently using VS 2015 Enterprise on Win10 Enterprise x64.

    CodeBank: All ThreadsColors ComboBoxFading & Gradient FormMoveItemListBox/MoveItemListViewMultilineListBoxMenuButtonToolStripCheckBoxStart with Windows

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width