Input Mask - Forcing the date to start with a '01'?

NewShoes

Registered User.
Local time
Yesterday, 20:32
Joined
Aug 1, 2009
Messages
223
Hey all,

As the title says really. I have a date field that users can enter dates on (normally using the date picker). However, I'd like the date to always start with '01' (first of the month). Is there a way I can achieve this using input masks?

Many thanks,
-NS
 
If you always want the date to be the 1st day of the specified month, why not just have your user to input the Month and Year and then you can convert that into the format you desire by simply adding the 01 to the month and year provided by the user.

You could even include the 01 in a label to the left of your text box and indicate to the user that they should provide the month and year.

If you try to use an Input Mask, you will loose the date picker.
 

Users who are viewing this thread

Back
Top Bottom