how to change date format into YYYY format in Text Entry question? | XM Community
Skip to main content
Question

how to change date format into YYYY format in Text Entry question?

  • January 29, 2021
  • 2 replies
  • 72 views

rshap

Hello
In a "Text entry" question How do I change date format such way that enable typing 4 characters of birth into YYYY ?(without using DD or MM) . could not find this kind possibility at the "content type" default possibilities.
Thanks'
🙂

2 replies

Forum|alt.badge.img+22
  • Level 7 ●●●●●●●
  • January 29, 2021

You can use the number validation, min value ~ 1900, max = 2021, decimals =0
Or you could use custom validation, matches regex

^(19|20)\\d{2}$


rshap
  • Author
  • January 30, 2021


THANK'S!