format
Hi
in the date picker how do I change the format to dd/mm/yy UK format rather than US
thanks
Ian
Hi
in the date picker how do I change the format to dd/mm/yy UK format rather than US
thanks
Ian
Hiya Ian,
In your form page, find the code in the <head> area:
<script type="text/javascript">
$(function(){
$('#Date_Field').datepicker({
changeMonth: true,
changeYear: true,
onClose: closeDatePicker_Date_Field
});
});
and add a line: dateFormat: 'dd/mm/yy',
<script type="text/javascript">
$(function(){
$('#Date_field').datepicker({
changeMonth: true,
changeYear: true,
dateFormat: 'dd/mm/yy',
onClose: closeDatePicker_Date_field
});
});
Then at the bottom of the page, find the Spry widget for Date format, and change it to:
var sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4", "date", {format:"dd/mm/yyyy", validateOn:["blur"]});
Change both instances of 'sprytextfield4' to whatever number applies on your page.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.