/    Sign up×
Community /Pin to ProfileBookmark

Date Picker Calendar Starts with Saturday

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>[/code]

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[/upl-file]

to post a comment
JavaScript

5 Comments(s)

Copy linkTweet thisAlerts:
@themoonauthorSep 08.2008 — Anyone got idea in customizing this ?

or is there any other script which is easy to customize ?

Thanks

M
Copy linkTweet thisAlerts:
@themoonauthorSep 09.2008 — Up ^
Copy linkTweet thisAlerts:
@FangSep 09.2008 — I would advise using a modern calendar script: Yahoo calendar

This has localization features which allows easy customization.

@ [B]vwphillips[/B] in Fx:
Error: this.oop is undefined

Source file: http://www.vicsjavascripts.org.uk/CalendarsII/080909.htm

Line: 281[/QUOTE]
Copy linkTweet thisAlerts:
@themoonauthorSep 29.2008 — Thanks vwphillips & Fang.

Fang, yahoo calendar documentation got lot to read.

thanks for the link.

M
×

Success!

Help @themoon spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...