Untitled
Anonymous
plain_text
06/05/2023 1:14 PM
512 B
12
Indexable
is_may = datetime.datetime.strptime(
data['date_booked'][:19], "%Y-%m-%dT%H:%M:%S"
).month == 5
date_format = '%a, %b %d at {}' \
if is_may else '%a, %b. %d at {}'
data['date_booked'] = datetime.datetime.strptime(
data['date_booked'][:19], "%Y-%m-%dT%H:%M:%S"
).strftime(date_format)
Tue, Oct. 5 at 7:30pmEditor is loading...