date format yyyy-mm-dd python code example
Example 1: js date format yyyy-mm-dd
yourDate.toISOString().split('T')[0]
Example 2: python datetime format yyyy-mm-dd
from datetime import datetime
now = datetime.today().isoformat()
print(now) # '2018-12-05T11:15:55.126382'