I have a dataset which has a Column date in a continuous format. I would like to add a new column to it which takes out week from that value in the Date column.
A    B
1    20050121
2    20050111
3    20050205
4    20050101
Here the B column idicates the date in the YEAR|MONTH|DAY format, I would like to add a new column to this dataset which takes in the month date from the dataset and tells us which week it belongs to, something like this:
A    B           C
1    20050121    3
2    20050111    2
3    20050205    5
4    20050101    1
The week starts from the 1st january of 2005. I thought of splitting the values of moth and date separately and then calculate according to these two values, How can I do this?
 
     
    