By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,742 Members | 1,224 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,742 IT Pros & Developers. It's quick & easy.

Convert Excel Julian to VB.NET Date

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a

<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.