Problem with DateTime

  • Thread starter Thread starter Dave
  • Start date Start date
D

Dave

Hello.

I have some basic problem:
I want to assign to my DateTime object date and time, I wrote:
DateTime d;

d = DateTime.Parse("01/05/2004 10:00:00");

But it assigns only date part (not both date + time).

What I'm doing wrong?
 

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

Back
Top