%currentdate% Date Format customization

#58291
  • Resolved Rajesh Antil
    Rank Math free

    I want to customize date format in the title, For Example now after using %currentdate% shortcode in post title the date display as June 3, 2020 but I want to display only June 2020 or 3.5.20 or 3.05.2020 . So how to use this functionality.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Alberto
    Rank Math business

    Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    You can use the %currenttime()% and %currentmonth% %currentyear% tags, which allows you to customize the date format.

    To display “June 2020”, you could use: %currentmonth% %currentyear%
    To display “3.5.20” (with 5 being the month): %currenttime(d.m.y)%
    To display “3.05.2020” (with 5 being the month): %currenttime(d.m.Y)%

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Wrong Information! First of All, m is not used to displaying the [3.5.20] month format in WordPress.
    Second, the shortcodes you provided are not working, they only work as a default setting that saved in General Setting Section.
    Check This image when the default setting is j F Y [4 June 2020].

    https://www.sarkariresult.app/category/notification.php?id=1a1CEvlWsHJVejAyuCYuGLc1XwwNrXkKu&name=Current_date

    • This reply was modified 4 years, 6 months ago by Rajesh Antil.
    Alberto
    Rank Math business

    Hello,

    Meanwhile in the preview editor, they don’t change, if you preview the post you will see the title changing to those dates, as you can see in the following screencast: https://i.rankmath.com/fNXSWp

    Looking forward to help you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)

The ticket ‘%currentdate% Date Format customization’ is closed to new replies.