469,946 Members | 1,987 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,946 developers. It's quick & easy.

Convert Excel Julian to VB.NET Date

Hi,

I am reading some dates from an Excel worksheet in my VB.NET code and
even though in Excel these dates appear in this format 3/18/04, it is
read into my code as a number like this: 36903.

I have been told this is a Julian date but the calculations I have
found on the internet to handle the conversion gives me dates from 1938
- so either this isn't a Julian number or excel has it's own way of
calculating it.

Can someone help me? I really need to know how to convert this number
to a date.

Thanks!

Joy

Mar 27 '06 #1
1 2500

<si***********@yahoo.com> wrote in message
news:11**********************@j33g2000cwa.googlegr oups.com...
I am reading some dates from an Excel worksheet in my VB.NET code and
even though in Excel these dates appear in this format 3/18/04, it is
read into my code as a number like this: 36903.


IIRC, Excel holds dates as days since 0-Jan-1900.
Experiment with putting numbers into Excel and formatting them as dates,
and vice versa.

BTW, I can't reproduce the values you gave above:
18-Mar-2004 => 38064
36903 => 12-Jan-2001

Regards,
Phill W.
Mar 29 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Raja | last post: by
1 post views Thread by Sam | last post: by
3 posts views Thread by news.microsoft.com | last post: by
4 posts views Thread by Bit byte | last post: by
4 posts views Thread by IsdWeb | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.