DateTime driving me nuts

S

Simple Simon

Hi,
I have this: 7/28/2003 3:41:57 PM in a datetime column in
Sql2000...When I read it in, and Convert.ToDateTime, I loose the time.
I need to compare the date AND time in my application.

Help? TIA - Gordon
 
S

Simple Simon

nm...i found the problem...i was formatting the string later as {0:d}
instead of {0:G}...duh!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top