Quantcast
Viewing all articles
Browse latest Browse all 5571

How to validate a date field with reference to a year only

Is there a way to set-up a date field so that it validates entering 4-digits for a Year only data entry?

 

I've tried setting Validation Pattern to date{YYYY}, however that throws an 'pattern is invalid' error.

 

Had a bit of a browse on the forum, but not been able to find a solution for this.

 

Thanks heaps,

 

Cari

Image may be NSFW.
Clik here to view.

Viewing all articles
Browse latest Browse all 5571

Trending Articles