[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework

Convert Time to DateTime?

coconet

4/7/2008 8:45:00 PM


I have this value

"07:01:14"

And I want to convert it to a DateTime to store it in a SQL Server
database. What is a clean way to do that?

Thanks.


1 Answer

Peter Duniho

4/8/2008 1:04:00 AM

0

On Mon, 07 Apr 2008 13:44:57 -0700, coconet <coconet@community.nospam>
wrote:

> I have this value
>
> "07:01:14"
>
> And I want to convert it to a DateTime to store it in a SQL Server
> database. What is a clean way to do that?

DateTime.TryParse()