Create udfDateTimes.sql

User Defined Function returns datetimes between the start and end date broken down by the time increment. Date increments include minute, hour, day, week, month, quarter and year.