H I O X INDIA
FREE Javascript
 HOME  ||  Scripts  ||  Purchase  ||  Tutorials  ||  Images  ||  Tools  ||  Directories 
  :-)  Send Page   :-)   Feedback   :-)   Register   :-)   Links   :-)   Support   :-)   Bookmarks :-)  
 Forums   Hosting   Internet Stats   Easy Calculation   FUN Games 

Java Script Source
List All
Date & Time
Calendar
Stop Watch script
Slide Show
Image Effect
Mouse Effects
Color Picker Tool
Dynamic Color
Random Generator
Select All
Form Validation
Textbox Counter
Dynamic Form select
Bookmark
Window / User Info
Pagination
Security / Authenticate
Status Bar
Title Bar
Cursor Position
Country List
Calculators
Delete Repeated Values
Alphanumeric
Free Games





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 language="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 language="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 language="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 language="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



Usage
1.) Just copy and past 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
- This javascript (misspelled as java script)/HTML code is given under GPL License
- i.e. Free use for those who use it as it is.
- Free, if your modification does not remove our copyright information and links.
- Detailed License information can be found here
- You can purchase the script if your requirements does not meet GPL License terms.


privacy policy     license     sitemap
© 2004-2005 HIOX INDIA - hioxindia.com

Others