JavaScript Scripts





Español Français 中文 Deutsch Portuguese Japanese nederlands
   
 
Free Java Script Codes
Javascript List All
Slide Show Slide Show
Ad Display Ad Display
Image Effect Image Effect
Animated Image Effects Animated Image Effects
Form Validation Form Validation
Color Picker Tool Color Picker Tool
Formatting Forms Formatting Forms
Select All Select All
Dynamic Form Select Dynamic Form select
Dynamic Color Dynamic Color
Calendar Script Calendar
Textbox Counter Textbox Counter
Alphanumeric Alphanumeric
Date Time Script Date & Time
Stop Watch Script Stop Watch script
Delete Repeated Values Delete Repeated Values
Pagination Pagination
Random Generator Random Generator
Animated Text Animated Text
Cursor Position Cursor Position
User Info Window / User Info
Security Security / Authenticate
Bookmark Bookmark
Mouse Effects Mouse Effects
Title Bar Title Bar
Status Bar Status Bar
Country List Country List
Free Games Free Games
Calculators Calculators
 




Select / Pick Date


About
This free javascript helps you to pick/select the date from the select table, you can easily get the selected date values using this date picker javascript.


Features
a) This date picker helps you to select date from the form.
b) This date picker script prints the date in dd/mm/yyyy format.
b) Set the year in dropdown as your wish.

Preview
Pick / Select Date

Select Date
©hscripts.com


Code
<!--        Script by hscripts.com          -->
<!--        copyright of HIOX INDIA         -->
<!-- more scripts @ http://www.hscripts.com -->
<script type="text/javascript">
// Set/Change the Year in the dropdown
var startyear = "1950"; // Change the Starting year in your dropdown
var endyear = "2010";  // Change th ending year in the dropdown
function selectdate() {
var mon = document.nday.birthmonth.options[document.nday.birthmonth.selectedIndex].value;
var day = document.nday.birthday.options[document.nday.birthday.selectedIndex].value;
var year = document.nday.birthyear.options[document.nday.birthyear.selectedIndex].value;
alert("Prints in mm/dd/yyyy format:-"+day+"/"+mon+"/"+year);
}
</script>
<form name="nday">
      <div align="center"><center><table bgcolor="#ffffff" border="2" cellpadding="0" cellspacing="0">
	<tr>
           <td colspan="3" align="center"><font face="verdana, arial" size="-1"> Select Date
	</font></td>
        </tr>
	<tr>
	<td align="center">
	<select name="birthday" size="1">
	<script type="text/javascript">
		for(var j=1;j<32;j++)
		document.write("<option value="+j+">"+j+"</option>");
        </script>
        </select></td>
	<td align="center">
	    <select name="birthmonth" size="1">
	    <script type="text/javascript">
		for(var i=1;i<13;i++)
		document.write("<option value="+i+">"+i+"</option>");
	    </script>
        </select></td>
	<td align="center">
	<select name="birthyear" size="1">
	<script type="text/javascript">
		for(var k=startyear;k<endyear;k++)
		document.write("<option value="+k+">"+k+"</option>");
        </script>
        </select></td>
        </tr>
	<tr>
           <td colspan="3" align="center"><font face="verdana, arial" size="-1">
           <a style="text-decoration:none" href="http://www.hscripts.com">©hscripts.com</a>
	</font></td>
        </tr>
      </table>
      </center></div><div align="center"><center><p><input value="Submit" onclick="selectdate()" type="button"></p>
      </center></div>
</form>

<!-- Script by hscripts.com -->

Release Date - 07-04-2008
Get free version without ©copyright link for just 5 price

For customization of this script or any script development, contact us at support@hscripts.com


Usage
1.) Just copy and paste the code where you want to use it.
2.) Set/Change the Month format in the dropdown as your wish.
     var startyear = "1901"; // Change the Starting year in your dropdown
     var endyear = "3010"; // Change th ending year in the dropdown
3.) Now you can pick the date from the form.



License
- The javascript (misspelled as java script) is given under GPL License
- i.e. Free use for those who use the codes as it is.
- Free, if your modification does not remove our copyright information and links.
- Click Here for detailed license information.
- You can purchase the script if your requirements does not meet our GPL License terms.
Other Links

web hosting