Date conversion going wrong in as.yearmon in R : I have a column as A_Date which has date values with the class as "POSIXct" "POSIXt". Now i have tried to convert these date values into mmm-yy format as date values. So, I have used as.yearmon() function. After converting i have checked the details. I came to know that for the date values of 01-01-2016 from 12:00 AM to 05:28 AM i am seeing the values as Dec-15 which is wrong.

Kindly, help me to figure out the issue.

Any help is appreciated.

Regards,

Mohan