• Resolved jesperrudolph

    (@jesperrudolph)


    When I do a course I can make a start/end date for enrollment, The date format do not follow the date format in WordPress.
    Is there any way in LifterLMS to change it from mm/dd/year to dd/mm/year ?

    If not can I suggest an enhancement to either follow the WordPress standar or have an option how to format the Date ?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • @jesperrudolph,

    When I do a course I can make a start/end date for enrollment, The date format do not follow the date format in WordPress.
    Is there any way in LifterLMS to change it from mm/dd/year to dd/mm/year ?

    Grab the shortcodes in the message options and add a date format parameter specifying the date format of your choice. Here’s the docs: https://lifterlms.com/docs/shortcodes/#lifterlms_course_info

    Here’s an example:

    [lifterlms_course_info key="start_date" type="date" format="Y-m-d"] Where ‘Y-m-d’ is any date format parseable by php’s date() function. You could copy and paste the format from your WP settings if you’re not familiar and that’s what you want.

    If not can I suggest an enhancement to either follow the WordPress standar or have an option how to format the Date ?

    It should follow WP core settings. I’m sorry it doesn’t and I frankly have no good reason for why I coded it to be different. I’ve made a lot of mistakes over the years and I’m always trying to fix things. This issue can be tracked in GitHub as it’s been reported a few times as a bug. I haven’t prioritized it yet. It’s a minor issue in the scheme of the codebase and while it is important, sites aren’t crashing as a result and no one’s losing any money. Here’s the issue in GH: https://github.com/gocodebox/lifterlms/issues/372

    Thread Starter jesperrudolph

    (@jesperrudolph)

    Hi Thomas,
    Thank you for your suggestion, the format helped a bit instead og mm/dd/yy, I now can get month in word dd, YYYY it’s better than the original

    Jesper

    Glad to help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Date format in LifterLMS’ is closed to new replies.