I have a date in this format
11/28/2011 2:39:00 PM
I cant seem to get a way to extract to each element out of this format (like take out day, month, year, hour, minute, second, AM/PM) separately to work with them. I need help here, so i can use this to rearrange the time manually and work with it how i want. I cant find a solution for this. (but im pretty sure i would need to use regex)
Though I’m sure regex isn’t the best way to do it, here are some regex’s that I tested on rubular.com!
Month:
Day:
Year:
Hour:
Minute:
Second:
AM/PM: