How can I retrieve date and time from DateTime string?
DateTime datefrom = 8/27/2012 12:08:25 AM I want to retrieve only the date into one variable and only the time (with AM/PM) into another variable.
I want something like this:
string date = 8/27/2012 string time = 12:08:25 AM