I need to validate a column having time ranges like ‘8:00 am – 9:00 pm’ I need to split this column into two and update to my table with the date with current date but the time from the range for example “2011-05-23 08:00:00” And “2011-05-23 21:00:00” for the range record. kindly help. Also I need to process if the data is ‘8:00 a.m. – 9:00 p.m.’, ‘8:00 a.m – 9:00 p.m’ or ‘8:00 am – 12:00 noon’. If there is no “-” need to reject the data for the record.
Share
Here’s a basic solution, which, I think, could well be used as a starting point:
Output: