date("format",timestamp)

      Php language logo
      date

      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

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.