I want to be able to round of the current date to the nearest(later/equal to) half a year in the format DD MMM YYYY
in python.
Example 1: If today is 10 Jul 2019
, I want the output of my code to display 31 Dec 2019
.
Example 2: If today is 15 Jan 2019
, I want the output to be 30 Jun 2019
.
Also, i want the months to be Jun/Dec (MMM), not 06 or 12.
I have imported the datetime package, but do not know how to go ahead. I am trying to use the round function, but not sure as well.
I have a code for my email: Please refer to the requirements for the half year ending DD MMM YYYY. i want the DD MMM YYYY to be autopopulated