JanPoz
Joined: 26 May 2010 Posts: 2
|
Posted: Tue Nov 29, 2011 8:45 am Post subject: predefined - dateselector uk formatting |
|
|
On my ENQUIRY FORM http://www.vikingston.co.uk/7.html I have two questions that require a date, so I use the predefined -date selector and as suggested, as I am in the UK, change MM/dd to dd/MM which has worked fine for over a year. Today the form somehow changed and starting throwing up errors that fields hadn’t been filled in etc. After much reading on the forum I decided to re-build the form
Unfortunately, having fixed the errors I find that I can only change the date back to the UK format on the first predefined date selector used in my question “Date of OUTGOING travel” as below:
<a href="#" onClick="cal1x.select(document.contactForm.date22,'anchor22',’dd/MM/yyyy'); return false;" title="cal1x.select(document.contactForm.date22,'anchor22',’dd/MM/yyyy'); return false;" name="anchor22" id="anchor22"><img src="http://www.mycontactform.com/js/img/calendar.gif" alt="Select Date" border="0" style="vertical-align: bottom;" /></a>
<div id="calendar" style="position:absolute;visibility:hidden;background-color:white;layer-background-color:white;"></div>
However, the second time I use the predefined date selector in for the question “Date or Return travel” it uses different code:
$("#q45").datepicker({ dateFormat: 'mm-dd-yy', changeMonth: true, changeYear: true });
How do I change this to UK date FORMAT?
If it helps I am entering the code into a 1and1 placeholder in their webbuilder
Thanks,
JanPoz
since posting the above I found that in my user information I could change the settings to the UK. Unfortunately now that I have done that, the code for both calendars has changed and I now get error messages saying the dates have NOT been filled in when they have - HELP!
Last edited by JanPoz on Tue Nov 29, 2011 9:15 am; edited 1 time in total |
|