Click to See Complete Forum and Search --> : vb to c# help


dky1e
July 15th, 2002, 08:13 AM
I need to convert the date into a long type.

Here's the vb equivalent:

lngDate = CLng( CDate( "01/14/2002" )


The reason why I need to do it is I need to convert the c# DateTime value into a smalltalk serial date (long, or int in .net)

I greatly appreciate your help.

vszilard
July 15th, 2002, 09:00 AM
try with "TimeSpan"
in DateTime class you can get the year, month, day, hour, minute, second.
with thoose you can build a timespan (which is a long)