Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Convert string to datetime
Message
From
09/02/2008 08:01:50
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
09/02/2008 05:37:37
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01291029
Message ID:
01291035
Views:
8
>Hi,
>How could I convert string "12-31-07 11:30AM" to datetime ?
>
>Thank you
DateTime t;
bool result = DateTime.TryParse("12-31-07 11:30AM",out t)
// if result is False parse failed and t = DateTime.MinValue.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform