Date Input Calendar - Week Starting on Sunday
Is there a way to change the Date Selection calendar weeks to start on Sunday instead of Monday? My current WordPress settings have the calendar starting on Sunday. Thanks.
8 Answers
Have you looked into using another Date Calendar script? You can use any one you'd like by creating an Input Helper with the related code and assigning it to the Date column of your choice.
You can find out more about Input Helpers here: http://podscms.org/codex/input_helpers
sc0tt, I´d like to do that, but I have no idea about the code to use on the input helper...
For exemple, to use this script: http://docs.jquery.com/UI/Datepicker
I put this code on head:
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script>
$(document).ready(function() {
$("#datepicker").datepicker();
});
</script>
And what code on the input helper?? Thanks again!!
Hey iCristiano,
You could use the following code as an input helper. Also instead of using #datepicker in your javascript you should assign the actual ID of the field that you'll be setting this to. For instance if your field is simply named "date" then the ID will be "pods_form1_date"
Thanks hsatter!
I did what you said, but nothing happened... Do I need to change the ID like that:
<script>
$(document).ready(function() {
$("#pods_form1_date").datepicker();
});
</script>
strange... using firebug i realized that the field don´t have an id:
<input type="text" value="" pods_form1_data="" class="form date data pods_field pods_field_data pods_coltype_dateid=">
@hsatterwhite I realized there was a problem with your code (I think so)... take a look there
Now, when I see it on Firebug, this is the result:
<input type="text" value="" id="pods_form1_date" class="form date inicio pods_field pods_field_inicio pods_coltype_date">
But it still doesn´t get the JQuery Data Picker... its just a blank field.
In fact, I don´t know if I´m using the JQuery correctly... I don´t know if I´m puting the right codes in the right place... It´s my first experience with it...
Do I just need to put all this code on header.php ?
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script>
$(document).ready(function() {
$("#pods_form1_date").datepicker();
});
</script>
edited Feb 10 '11 at 1:32
No, I don´t get any error in Firebug... I want to use it on backend, substituing the defaul pod´s datapicker.
I tryed to do what you said, changing place of the script from header.php to the input helpper, and the field is still blank...
I don´t know what to send you... if you give me some email, I can send you a password of the admin area... Thanks again @hsatterwhite!


