I've been using this code to get the date in the format dd/mm/yyyy with Culture="en-GB":
DateFrom = Convert.ToDateTime(DateFrom.ToString("d");
Now I need to put the date in US format, so I've changed my Culture to "en-US", but the line of code no longer works, instead of 10/28/2003, I get 10/28/2003 12:00:00AM.
Can anybody help me out with this?
Thanks,
lfc77
DateFrom = Convert.ToDateTime(DateFrom.ToString("d");
Now I need to put the date in US format, so I've changed my Culture to "en-US", but the line of code no longer works, instead of 10/28/2003, I get 10/28/2003 12:00:00AM.
Can anybody help me out with this?
Thanks,
lfc77