Hi,
How can I format the date entered in the datepicker? like dd-mm-yyyy
Datepicker
(3 posts) (2 voices)-
Posted 4 months ago #
-
Have you
checked the documentation on it:http://docs.jquery.com/UI/Datepicker
The JQuery code is found in the JS folder for that theme and is named, datepicker.js.
Adam
Posted 4 months ago # -
This was just submitted to me by Smilie. Thanks for sharing your info on how to adjust the date format with the datepicker!
This is where the initiation takes place:
<script type="text/javascript" src="js/ui/ui.datepicker.js"></script>
<script type="text/javascript">
$(function() {
$('#datepicker').datepicker({Simply add
dateFormat: 'dd-mm-yy'So you get something like this:
<script type="text/javascript" src="js/ui/ui.datepicker.js"></script>
<script type="text/javascript">
$(function() {
$('#datepicker').datepicker({
changeMonth: true,
changeYear: true,
showButtonPanel: true,
dateFormat: 'dd-mm-yy'
});
});$(function() {
$('#datepicker2').datepicker({
numberOfMonths: 3,
changeYear: true
});
});
</script>Posted 4 months ago #
Reply
You must log in to post.