[lang-ref] ( format_date ) ( python )

def test_format_date():
    # strftime
    d = datetime.date(2025, 3, 18)

    assert d.strftime(r'%Y/%m/%d') == '2025/03/18'