USA date in Python strftime()
The month/day/year format used in the United States.
Format string
%m/%d/%Y
Example output
06/18/2026
Edit this format in the live tester →
In Python
from datetime import datetime
dt = datetime(2026, 6, 18, 13, 45, 30)
dt.strftime("%m/%d/%Y")
# => "06/18/2026"
Directives used
| %m | Month as a zero-padded number (01–12). | 06 |
| %d | Day of the month, zero-padded (01–31). | 18 |
| %Y | Year with century as a decimal number. | 2026 |