I want to show the string “YYYY/mm/dd” as the default value for a forms.DateField and treat that as an empty value, how can I do this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Easiest way? Use HTML5
placeholderattribute (with JS support if you need to support browsers that don’t supportplaceholder). You can pass it insideattrsargument of the widget constructor.