I have a string which is converted from date to string and the data looks like this: 6/2/2010 4:30:00 PM6/2/2010 4:45:00 PM and I need output like this: 04:30PM. Could you please help?
I have a string which is converted from date to string and the data
Share
DateTime.ToString("hh:mmtt")should do exactly what you need.