Most asked top Interview Questions and Answers & Online Test
Education platform for interview prep, online tests, tutorials, and live practice

Build skills with focused learning paths, mock tests, and interview-ready content.

WithoutBook brings subject-wise interview questions, online practice tests, tutorials, and comparison guides into one responsive learning workspace.

Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Without Book Ask Question

Question. Date format with Dojo in my jsp

- Hi,
I want a different format while I select a date from calendar in my jsp.
How can I do that work in Dojo if possible?

Posted At Jul 31, 2014 Posted By Abhi
Answer. Check below code where you can get the selected date as per your desired format (here dd/MM/yyyy):

<form:input path=\"registryDetail.bankRegistryVoiceRecvDate\" id=\"BRVoiceReceivedDate\" title=\"Select Voice received date\"/>
<script type=\"text/javascript\">
Spring.addDecoration(new Spring.ElementDecoration({
elementId : \"BRVoiceReceivedDate\",
widgetType : \"dijit.form.DateTextBox\",
widgetAttrs : {
value : dojo.date.locale.parse(dojo.byId(\"BRVoiceReceivedDate\").value, {selector : \"date\", datePattern : \"dd/MM/yyyy\"}),
datePattern : \"dd/MM/yyyy\",
required : true,
constraints : {datePattern : \"dd/MM/yyyy\"}
}
}));
</script>
Posted At Aug 01, 2014 Posted By Devnarayan

Enter your Answer

Name
Email Address
Answer
Security Check
Solve this to continue: 2 + 4 = ?
Copyright © 2026, WithoutBook.