Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27549

Time Stamp / Storage of Time in DB

$
0
0
Hello all

I Am storing time in a SQL db and right now the time is stored in HH.MM.SS
I would like to only store the HH.MM.
I know how to use the following to string

DateTime.Now.ToString("MM/dd/yyyy hh:mm tt")

but I am not storing in in String I storing in in a time field.

I guess All i need to do is change the seconds to 00.

ie 17:39:47 changed to 17:39:00

Thanks

Viewing all articles
Browse latest Browse all 27549

Trending Articles