date formatting

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hey all,

how do i format my string that contains the date and time?

c#:
String dateValue;
dateValue = 9/20/2007 10:00:00 AM

but i'd like it to just contain the date:
9/20/2007

thanks,
rodchar
 

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