date

    0

    8

    lucycodes42

    PHP recipes

    The code prints the current date as "MM/DD/YYYY". It uses the "format" function to specify the desired format (e.g. "yyyy/MM/dd"). The "timestamp" argument specifies the time component of the date.

    Shortcut: date

    date("format",timestamp)
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.