I have question about casting problem DateTime to numer in c#.
ex: VB6 or SQL
Select Cast( Getdate() as int)
result : 38272 (<-- 10/13/2004 )
what is the same casting method aboue DateTime to int32 in C#.
Thank you.
<=?Utf-8?B?Q2hyaXMgSm9v?= <Chris Joo@discussions.microsoft.com>>
wrote:
> I have question about casting problem DateTime to numer in c#.
>
[quoted text clipped - 3 lines]
>
> what is the same casting method aboue DateTime to int32 in C#.
I think you're after DateTime.ToOADate()

Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Chris Joo - 13 Oct 2004 16:01 GMT
Thank you so much... You're right .
> <=?Utf-8?B?Q2hyaXMgSm9v?= <Chris Joo@discussions.microsoft.com>>
> wrote:
[quoted text clipped - 7 lines]
>
> I think you're after DateTime.ToOADate()