dates in C#
C#
3
Posts
2
Posters
4
Views
1
Watching
-
How can I convert a long into a date in C#? For example the number 37634 is equivalent to 13/01/2003. In Vb6 I could write:
Dim d As Date d = CDate(37634)
and d would then hold 13/01/2003 -
There are two ways to achieve this... You can use Convert.ToDateTime(37634) or DateTime.FromOADate(37634). Chris