Advertisement
killerbng

f string formatted datetime

Jun 1st, 2022
711
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.05 KB | None | 0 0
  1. print(f"{(current_time := datetime.now()):%Y-%m-%d}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement