Hanson Lab
From OpenWetWare
(Difference between revisions)
| Line 13: | Line 13: | ||
* College of Marine and Earth Studies and Delaware Biotechnology Institute | * College of Marine and Earth Studies and Delaware Biotechnology Institute | ||
* University of Delaware, Newark, DE, USA. | * University of Delaware, Newark, DE, USA. | ||
| + | |||
| + | <b>Todays Date: </b><SCRIPT LANGUAGE="JavaScript"> | ||
| + | <!-- | ||
| + | Stamp = new Date(); | ||
| + | document.write('' + (Stamp.getMonth() + 1) +"/"+Stamp.getDate()+ "/"+Stamp.getYear() + ' <br> '); | ||
| + | var Hours; | ||
| + | var Mins; | ||
| + | var Time; | ||
| + | Hours = Stamp.getHours(); | ||
| + | if (Hours >= 12) { | ||
| + | Time = " P.M."; | ||
| + | } | ||
| + | else { | ||
| + | Time = " A.M."; | ||
| + | } | ||
| + | |||
| + | if (Hours > 12) { | ||
| + | Hours -= 12; | ||
| + | } | ||
| + | |||
| + | if (Hours == 0) { | ||
| + | Hours = 12; | ||
| + | } | ||
| + | |||
| + | Mins = Stamp.getMinutes(); | ||
| + | |||
| + | if (Mins < 10) { | ||
| + | Mins = "0" + Mins; | ||
| + | } | ||
| + | |||
| + | document.write('<B>Todays Time:</b> ' + Hours + ":" + Mins + Time + ''); | ||
| + | |||
| + | //--> | ||
| + | </SCRIPT> | ||
Revision as of 21:20, 6 June 2008
Todays Date: <SCRIPT LANGUAGE="JavaScript"> </SCRIPT> |


