D
daniel li
I am working with some java/.net conversion project and I need to
convert the following method into C#.
private java.sql.Date convertDate( Calendar calendar )
{
// calendar .getTime() returns a util.Date and I need to
// construct a
// sql.Date object. So call getTime() on the util.Date
// object to return
// a long representing milliseconds.
return new java.sql.Date( calendar.getTime().getTime() );
}
Does anybody know the equivalence in C# that will return
a long representing milliseconds?
Thanks
Daniel
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
convert the following method into C#.
private java.sql.Date convertDate( Calendar calendar )
{
// calendar .getTime() returns a util.Date and I need to
// construct a
// sql.Date object. So call getTime() on the util.Date
// object to return
// a long representing milliseconds.
return new java.sql.Date( calendar.getTime().getTime() );
}
Does anybody know the equivalence in C# that will return
a long representing milliseconds?
Thanks
Daniel
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!