I have a String in the format of "MMM-YY" (ie) "jun-22","Jan-22" etc. I want to convert it into Date with 01st Day of Month in the following format.
Jan-22 --> 01-Jan-22
Feb-21 --> 01-Feb-21
I have tried a few ways but couldn't get to the solution. Can someone please advise on what is the quickest and most efficient way of doing this in a Pyspark Dataframe.
Code used could be pyspark or Python.