[Solved] Datetime – Strftime and Strptime


A possible solution is to use str.lstrip

Ex:

import datetime
Date = datetime.datetime.today().strftime("%d %B %Y")
print(Date.lstrip("0"))

Output:

9 May 2018

0

solved Datetime – Strftime and Strptime