This article is geared towards scripting languages which offer a Date Format function, but don't offer a directive to include the Day without Leading Zero.

The simplest way to achieve this is to use a strip replace function, replacing all instances of " 0" with " ".

Using Python as an example:

dateWithoutLeadingZero = mydate.effective.strftime('%b %d %Y').replace(' 0', ' ')


Leave a Reply

Your email address will not be published. Required fields are marked *