We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22935
    • 23 Posts
    I’d like to use "%e" in my Unix date format for a TV, but when i use it, no date displays at all on the page, whereas is if if use "%d" the date displays just fine. I’d really like to use "%e" rather than "%d" so the day is not zero-padded. Can anyone help me out?
    Thanks
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Not all conversion specifiers may be supported by your C library, in which case they will not be supported by PHP’s strftime(). Additionally, not all platforms support negative timestamps, so your date range may be limited to no earlier than the Unix epoch. This means that %e, %T, %R and, %D (and possibly others) - as well as dates prior to Jan 1, 1970 - will not work on Windows, some Linux distributions, and a few other operating systems. For Windows systems, a complete overview of supported conversion specifiers can be found at » MSDN.

      http://php.net/manual/en/function.strftime.php
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org