date format without "th" (as in: 7th)

WordPress Event Management, Calendars & Registration Forums General Question date format without "th" (as in: 7th)

This topic contains 2 replies, has 2 voices, and was last updated by  Olga 11 years, 9 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #5246

    Hi guys,
    I’m new to wordpress, and I can’t figure out how I can format a date.
    In the widget with events list, when I write %start{jS}%, I get the date displayed as 7th. How can I get rid of that “th”, and just get “7”?

    Thank you!

    Olga
    #5272

    Hi Olga,

    Just use %start{j}%. You can find out more about php date formatting here: http://php.net/manual/en/function.date.php

    Stephen Harris
    #5275

    Hi Stephen,
    thank you so much!
    Now my events look just as I wanted them.

    Olga
Viewing 3 posts - 1 through 3 (of 3 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.