Convert # of days to date

Posted on 2007-07-26
Medium Priority
Last Modified: 2013-11-07
I am pulling the following string of numbers from an xml file, 14405.  To get the correct date I have to add 24837 (so I am converting 14405 to an int with Int32.Parse() and adding 24837 to get 39234).  The full value of 39234 represents 6/1/2007.  I can not figure out how to get 39234 to display as 6/1/2007 in c# at all.  Anyone else got some ideas?
Question by:jhoop2002
LVL 53

Accepted Solution

Dhaest earned 2000 total points
ID: 19575251
x DateTime x = DateTime.FromOADate(39234);
LVL 96

Expert Comment

by:Bob Learned
ID: 19575252

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question