Apr-01-2019, 05:34 AM
(This post was last modified: Apr-01-2019, 05:34 AM by Prince_Bhatia.)
hi,
i have date like this 31-12-2024 (dd-mm-yyyy) and i want to convert this date to Dec, 2024. How can i do that.
any help?
i have date like this 31-12-2024 (dd-mm-yyyy) and i want to convert this date to Dec, 2024. How can i do that.
date = 31-12-2024 l_dt = datetime.datetime.strptime(date, '%d-%M-%Y') l_dt = l_dt.strftime('%b; %Y')and it prints Jan, 2024 but it should print Dec, 2024
any help?