It’s always fun as well as frustration at times working with DateTime in C#.
While working with one of the application, I had a requirement to remove the trailing AM/PM from time string which we were reading from as .csv file.
If anyone out there with similar requirement, he/she can straight away refer to this post and no need to think on writing the logic. So thought of sharing it.

Remove AM PM from Time String using C#
CSV File:
|
Name |
DOJ |
Check in Time |
|
Dipendra |
4/15/2016 |
9:00:00 AM |
|
Mahesh |
4/12/2016 |
2:30:00 PM |

Bhavik PatelPosted May 5, 2016, 12:33 AM
good share