Hi,
I’m using the following date picker calendar
Once the calender Pop up, the starting day of the week is set to Monday.
The question is How to make it start with Saturday ?
If the following script is not flexible for this issue, is there any other code that have calendar starting date is Saturday. I prefer the input date format to be in YYYY-MM-DD.
Here is the script below:
HTML File:
[code=html]<html>
<head>
<script language=”JavaScript” src=”js/date-picker.js” type=”text/javascript”></script>
<title>Pick a date</title>
<META http-equiv=Content-Type content=”text/html; charset=windows-1256″>
</head>
<body leftmargin=”0″ topmargin=”0″ marginwidth=”0″ marginheight=”0″>
<table cellpadding=”0″ cellspacing=”0″ width=”80%” border=”0″ align=”center” bgcolor=”#CC0000″>
<form method=”POST” action=”” name=”sample”>
<tr>
<td valign=”top”>Date From:</td>
<td valign=”top”>
<input type=”text” name=”date_from” size=”20″>
<a href=”javascript:show_calendar(‘sample.date_from’);” onMouseOver=”window.status=’Date Picker’; overlib(‘Click here to choose a date from a one month pop-up calendar.’); return true;” onMouseOut=”window.status=”; nd(); return true;”><img src=”images/cal.gif” width=20 height=18 border=0></a>
</td>
</tr>
<tr>
<td valign=”top”>Date To:</td>
<td valign=”top”>
<input type=”text” name=”date_to” size=”20″>
<a href=”javascript:show_calendar(‘sample.date_to’);” onMouseOver=”window.status=’Date Picker’; overlib(‘Click here to choose a date from a one month pop-up calendar.’); return true;” onMouseOut=”window.status=”; nd(); return true;”><img src=”images/cal.gif” width=20 height=18 border=0></a>
</td>
</tr>
</form>
</table>
</body>
</html>
and my JS file (date-picker.js) : is attached.
Thanks in advance.
M
[upl-file uuid=a89af411-f42c-47e0-80c9-5843aeeb747a size=16kB]date-picker.txt