We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18436
    • 135 Posts
    HI I was wondering if it would be possible to include the php date format string for outputing the suffix of a date i.e 03rd November as opposed to 03 November, I can’t recall what the character was but did test it two weeks ago and the format string wasn’t recognised.
      • 7923
      • 4,213 Posts
      Output what date, where and how? There are snippets to output dates and they use strftime to format the date, you can define the format to use to output the date in whatever way you want. PHx can change the format of dates too..


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 18436
        • 135 Posts
        Nevermind, just figure out that since you’re using strftime it won’t be possible.

        What I wanted to do was output the suffix for the day of the month. this seems to only be possible using the php date command with "S" as a format parameter: http://www.php.net/manual/en/function.date.php

        Back to the never-ending aesthetic date output planning rolleyes
          • 7923
          • 4,213 Posts
          Modify this snippet forexample, change strftime to date and use date function format.


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."