date

    0

    9

    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
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.