We have YearMonth VARCHAR(10) column and I am trying to create a date column which will give me last date of the month based on the YearMonth column.
For Example:
201612 - 12/31/2016
201602 - 02/29/2016
201702 - 02/28/2017
We have YearMonth VARCHAR(10) column and I am trying to create a date column which will give me last date of the month based on the YearMonth column.
For Example:
201612 - 12/31/2016
201602 - 02/29/2016
201702 - 02/28/2017
Assume your varchar is 201612
Returns
If you wanted the MM/DD/YYYY format