Sasa.D Sasa.D - 8 days ago 5
Javascript Question

Convert 7 digit Julian date calender date in JavaScript..?

how to convert the

Julian
date into the Calendar Date in JavaScript..?

For Example:--We are using


Julian Date - 1091029

Exact Date - 2009-10-29


Here 1st three digit Represent century(109 i.e 2009) and next two digit(10 i.e October) Represent the month and next two(29) represents the date.. So..

I Want this situation in java Script code..
and i am asking for this..

So please help me with that...

Answer

Try using momentjs. Its very flexible. You just specify the format of your date and it should parse it for you into a object you can easily use.

Comments