PC Review


Reply
Thread Tools Rate Thread

DateTime question

 
 
=?Utf-8?B?amVmZg==?=
Guest
Posts: n/a
 
      1st Jun 2005
hi,guys

I want to change a string datetime to long value.
and long to string datetime.

I have looked into the SDK.

It seem to use TypeConverter.ConvertTo method

But I am confused.

Would you minding tell me?

Thanks

 
Reply With Quote
 
 
 
 
Alex Feinman [MVP]
Guest
Posts: n/a
 
      1st Jun 2005
long lValue = dateTimeValue.ToFileTime();
DateTime dt = DateTime.FromFileTime(lVal)

--
Alex Feinman
---
Visit http://www.opennetcf.org
"jeff" <(E-Mail Removed)> wrote in message
news:B5EDA810-C6F5-480A-9318-(E-Mail Removed)...
> hi,guys
>
> I want to change a string datetime to long value.
> and long to string datetime.
>
> I have looked into the SDK.
>
> It seem to use TypeConverter.ConvertTo method
>
> But I am confused.
>
> Would you minding tell me?
>
> Thanks
>


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about DateTime Roy Microsoft C# .NET 3 28th Jul 2008 05:33 PM
a question regarding DateTime Jeff Microsoft C# .NET 10 19th Dec 2007 04:42 PM
DateTime Question? Vai2000 Microsoft C# .NET 4 2nd Mar 2005 08:01 PM
Help! DateTime question. Frank Microsoft Dot NET 2 18th Jun 2004 10:44 AM
datetime question Mike Painter Microsoft Access ADP SQL Server 2 4th Aug 2003 03:55 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:57 AM.