Functions | Description |
Date Object | Displaying date and time in an alert window |
getTime() | milliseconds that is passed from January 1, 1970 |
getMonth | month part of the date object, showing month number from 0 to 11 |
getYear | Getting the year in YYYY format from the data object |
getDate | Date of the month starting from 1 to 31 and formatting |
getDay | Returns 0 for Sunday and 1 for Monday .. 6 for Saturday |
getMinutes | Minute part of the date object, starting from 0 to 59 |
getHours | Hour part of the date object, starting from 0 to 23 |
getSeconds | Seconds part of the date object, starting from 0 to 59 |
setDate | Changing the date object by changing the date of the month |
setMonth | Setting the month part of the date object by using numbers 0 to 11 |
setfullyear | Setting to full year the date object |
setHours | Changing the hour part of date object, from 0 to 23 or to any other value |
setMinutes | Changing the Minute part of date object, from 0 to 59 or to any other value |
toString | Before using any string functions we have to change date output to string |
toLocaleString | Date output to local string conversion |
toDateString | Changing to date to String |
toLocalDateString | Changing to date to Local date String |
toTimeString | Getting the time string part from the date object |
toUTCString | Converting to UTC time string |
setTimeout | Timer to execute functions at an interval |
clearTimeout() | Resetting the timer before interval |
Recursive timer | Executing function again and again by timer |
countdown timer | Balance time left or countdown to an event |
Clock | Realtime clock displaying hour minutes and sec. |
Those who want to start with jsp and MySQL, this is an excellent example for themselves. Here you can learn how to insert data to MySQL using JSP. Also you can learn about session handling in jsp. 1 2 3 4 5 6 7 8 9 10 CREATE TABLE `members` ( `id` int (10) unsigned NOT NULL auto_increment, `first_name` varchar (45) NOT NULL , `last_name` varchar (45) NOT NULL , `email` varchar (45) NOT NULL , `uname` varchar (45) NOT NULL , `pass` varchar (45) NOT NULL , `regdate` date NOT NULL , PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; index.jsp 1 2 3 4 5 6 ...
Comments
Post a Comment