HomeCommon › USA date

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

%mMonth as a zero-padded number (01–12).06
%dDay of the month, zero-padded (01–31).18
%YYear with century as a decimal number.2026

Related formats