How to extract and process substring between varying numbers of delimeters in a variable length string – SQL Server I have a table, named ‘dates’.