fabi.s

Generation

generate functionThu, 03 Nov 2022

get date for now like this format: 2021-02-01

import datetime def get_date(): now = datetime.datetime.now() return now.strftime("%Y-%m-%d") get_date()

Questions about programming?Chat with your personal AI assistant