I have dates from a database for example:
These i would like to display as:
But if the dates overlap a month:
Then it would be displayed as:
39 March - 12 April
Could this be done with some date format function in php?