Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contact form Date picker does not work properly for custom format jS F Y #11251

bobbingwide opened this issue Feb 2, 2019 · 0 comments


Copy link

commented Feb 2, 2019

I tried the Date picker block. When I clicked on the required date it was displayed as 1S February 2019.
It appears that the date picker can't handle the custom format jS F Y.
where S represents the English ordinal suffix for the day of the month, 2 characters
e.g. st, nd, rd, th.

Steps to reproduce the issue

  1. Set custom date format to jS F Y
  2. Add a Date picker to a Contact Form on a post
  3. View the post
  4. Click on the required date
  5. See the unexpected S in the date 1S February 2019

What I expected

1st February 2019

What happened instead

1S February 2019


If applicable, add screenshots to help explain your problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.