G
Guest
I need to convert a 7-digiti julian date to a calendar date. For example, my cell reads 2004029 but I need to convert it to read 01/29/2004.
Thanks.
Thanks.
I need to convert a 7-digiti julian date to a calendar date. For example, my cell reads 2004029 but I need to convert it to read 01/29/2004.
Thanks.
my cell reads 2004029 but I need to convert it to read 01/29/2004.j weber said:I need to convert a 7-digiti julian date to a calendar date. For example,
Similar question as above, except I need to convert 1040131 to 1/31/04. TIA
Greg Rivet said:Ron the 1040131 is a date format in access the 104=2004, 01=Jan, 31=day.
HTH.
Greg
Ron,
First, you are better off to create a new thread than add to an existing
one. Many people ignore threads with many replies because they assume the
problem has been address.
Second, what you have is a number which must be converted to a date. You do
that with three formulas, one for year, one for month, one for day.
The year is easy: =int(a1/10000)+1900
The day is easy: =mod(a1,100)
The month is more complicated because you have to use both -- first get rid
of the year, then get rid of the day: =int(mod(a1,10000))/100
You combine this with:
=date(int(a1/10000)+1900,int(mod(a1,10000))/100,mod(a1,100))
Ron Rosenfeld said:Perhaps you should address your complaint to the poster who asked the question,
rather than to the respondent. Had I started a new thread with my response,
the party that asked the question would have had a good deal of difficulty
finding an answer.
LOL!
Ron the 1040131 is a date format in access the 104=2004, 01=Jan, 31=day.
HTH.
Fred Smith said:Ron,
First, you are better off to create a new thread than add to an existing
one. Many people ignore threads with many replies because they assume the
problem has been address.
Second, what you have is a number which must be converted to a date. You do
that with three formulas, one for year, one for month, one for day.
The year is easy: =int(a1/10000)+1900
The day is easy: =mod(a1,100)
The month is more complicated because you have to use both -- first get rid
of the year, then get rid of the day: =int(mod(a1,10000))/100
You combine this with:
=date(int(a1/10000)+1900,int(mod(a1,10000))/100,mod(a1,100))
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.