Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vb to C# help, datetime conversion...

Status
Not open for further replies.

dky1e

Programmer
May 4, 2002
293
US
I need to convert the date into a long type.

Here's the vb equivalent:
[tt]
lngDate = CLng( CDate( "01/14/2002" )
[/tt]

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.
 
Check out the Convert Class... I think that is what you are looking for.
 
it has a .toLong( DateTime ), but it has not been implemented.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top