We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25551 ☆ A M B ☆
    • 1,231 Posts
    Is there a way to use date suffix with Ditto? Such as 18th, 23rd etc? I am using phx and ditto just now but it’s not quite working.

    I have
    phx:EventDate
    return strftime($options, strtotime($output));


    [+date:EventDate=`%jS`+]


    but that didn’t work as I hoped. Anyone know how to get that working with Ditto?

    Thanks!
      Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
      AugmentBLU - MODX Partner

      BLUcart - MODX Revolution E-Commerce & Shopping Cart
      • 16278
      • 928 Posts
      I think that format string is for the PHP date() function, rather than strftime(). You may also need to set your time zone in the snippet to avoid warnings when using date().
      wink KP