PC Review


Reply
Thread Tools Rate Thread

datetime convertion

 
 
juli
Guest
Posts: n/a
 
      2nd Jan 2005
How can I convert string into a datetime? Thanks!
 
Reply With Quote
 
 
 
 
José Joye
Guest
Posts: n/a
 
      2nd Jan 2005
Try DateTime.Parse()

- José

"juli" <(E-Mail Removed)> a écrit dans le message de news:
(E-Mail Removed)...
> How can I convert string into a datetime? Thanks!



 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      2nd Jan 2005
Juli,

This should do the job
DateTime dta = Convert.ToDateTime(dt1,null);

dt1 should be in a format as is given in a string confirming the language
and regional settings of the computer, what is mostly standard installed at
your country formats by installation.

I hope this helps?

Cor

"juli" <(E-Mail Removed)>

> How can I convert string into a datetime? Thanks!



 
Reply With Quote
 
Shiva
Guest
Posts: n/a
 
      2nd Jan 2005
Try DateTime.Parse() or DateTime.ParseExact()

"juli" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
How can I convert string into a datetime? 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
Millisecond values missing when inserting datetime into datetime column of sql Server Manikandan Microsoft C# .NET 4 18th Jul 2007 08:59 PM
How can I save a DateTime from my C# program into a SQL Server (datetime) database column. Steve Kershaw Microsoft ASP .NET 5 29th Aug 2006 03:10 AM
datetime convertion error juli Microsoft C# .NET 4 3rd Jan 2005 02:19 PM
NASTY Bug in handling of DateTime.MaxValue and DateTime.MinValue =?Utf-8?B?YmlsbF83Nw==?= Microsoft Dot NET Framework 2 31st Mar 2004 06:43 PM
converting Unix datetime count to .Net DateTime object Mark Worrall Microsoft Dot NET Framework 2 13th Feb 2004 05:52 PM


Features
 

Advertising
 

Newsgroups
 


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