Help formatting date.

Home Forums How to Help formatting date.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #18852 Reply
    info63
    Participant

    See: https://imgur.com/SRniSZb for a screenshot

    #18854 Reply
    admin
    Keymaster

    Create three mappings using the Formidable: Dynamic setting found at the bottom of the “Webform Data Field ID” dropdown on the field map layout along with PHP date function like this… change [123] to your date field;

    1st Field Map, for “DAY” we use…
    [123 format=”jS”]
    (Where ‘j’ is the number date without leading zeros and ‘S’ provides the letters “st”, “nd”, “rd”)

    2nd Field Map, for “MONTH” we use…
    [123 format=”F”]
    (Where ‘F’ provides the full month in words)

    3rd Field Map, for “YEAR” we use…
    [123 format=”Y”]
    (Where ‘Y’ provides the four digit year)

    Formidable: Dynamic Date Formatting

    We remain at your service.

    #18856 Reply
    info63
    Participant

    Thank you.

    That worked!

    Is there any way to trim the 20 off the year?

    ie 05 instead of 2005

    Thanks!

    #18858 Reply
    admin
    Keymaster

    As linked above, you can use any of the parameters found on this PHP Date Functions page. Two year is ‘y’

    We remain at your service.

    #18859 Reply
    info63
    Participant

    Thanks! 🙂

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Help formatting date.
Your information: