2009年8月24日星期一

[fw-mvc] dijit.form.DateTextBox properties

Hello !

I tried giving default value to my dijit.form.DateTextBox and adding min constraints but it does not work. I did give like below :

<input type="text" id="task_date" name="task_date" size="10" value="8/18/2009"
        dojoType="dijit.form.DateTextBox"
        required="true"
        promptMessage="Enter Task date."
        invalidMessage="Invalid date."
        constraints="{min:'8/10/2009'}"
        />

I also tried giving date in yyyy-mm-dd in above both places but still not working. However it pastes date on selection in mm/dd/yyyy format like mentioned above and hence I gave these values.

Can anybody please help me showing where am I wrong or how to do so ?

Thanks in advance !

Naimesh

 

 

 

没有评论: