|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
Confirmed User
Industry Role:
Join Date: Mar 2004
Posts: 4,027
|
Hey is there a javascript that tells you the date right now?
So I can say "Last Updated on: ____" and it'll just print todays date?
Its an .html age so I can I do it with php? without naming the page .php? |
|
|
|
|
|
#2 |
|
Confirmed User
Join Date: Jul 2003
Location: chicago
Posts: 1,135
|
yeah, simple to do without a server-side language
|
|
|
|
|
|
#3 |
|
Confirmed User
Join Date: May 2006
Posts: 767
|
<SCRIPT language="JavaScript" type="text/javascript">
<!-- // current date - from http://rainbow.arch.scriptmania.com/scripts // Array of day names var dayNames = new Array("Sunday","Monday","Tuesday","Wednesday","Thu rsday","Friday","Saturday"); var monthNames = new Array("January","February","March","April","May"," June","July", "August","September","October","November","Decembe r"); var dt = new Date(); var y = dt.getYear(); // Y2K compliant if (y < 1000) y +=1900; document.write(dayNames[dt.getDay()] + ", " + monthNames[dt.getMonth()] + " " + dt.getDate() + ", " + y); // --> </SCRIPT> you can do it with php and a .html page but that is beyond the scope of this thread |
|
|
|
|
|
#4 |
|
Confirmed User
Join Date: Jul 2003
Location: chicago
Posts: 1,135
|
Code:
<script type="text/javascript"> document.write(Date()) </script> |
|
|
|
|
|
#5 |
|
Porn Meister
Industry Role:
Join Date: Feb 2005
Posts: 16,443
|
Nope, it's impossible.
j/k, lol
__________________
43-922-863 Shut up and play your guitar.
|
|
|
|
|
|
#6 |
|
Confirmed User
Join Date: Mar 2003
Location: Oh Canada!
Posts: 3,662
|
<SCRIPT language=JavaScript>
days = new Array(7) days[1] = "Sunday"; days[2] = "Monday"; days[3] = "Tuesday"; days[4] = "Wednesday"; days[5] = "Thursday"; days[6] = "Friday"; days[7] = "Saturday"; months = new Array(12) months[1] = "January"; months[2] = "February"; months[3] = "March"; months[4] = "April"; months[5] = "May"; months[6] = "June"; months[7] = "July"; months[8] = "August"; months[9] = "September"; months[10] = "October"; months[11] = "November"; months[12] = "December"; today = new Date(); day = days[today.getDay() + 1] month = months[today.getMonth() + 1] date = today.getDate() year=today.getYear(); if (year < 2000) year = year + 1900; document.write ("<font class='welcome' color=white> "+ day + ", " + month + " " + date + ", " + year + "</font>") // -- end hiding </SCRIPT> |
|
|
|
|
|
#7 | |
|
Confirmed User
Industry Role:
Join Date: Mar 2004
Posts: 4,027
|
Quote:
do you know how to shorten it so it only gives todays date? Mon Jun 19 2006 15:21:36 GMT-0400 (Eastern Standard Time) I just want it to say Jun 19 2006 |
|
|
|
|
|
|
#8 |
|
I like Dutch Girls
Join Date: Feb 2003
Location: dutchteencash.com
Posts: 21,684
|
<java>
the date right now </java>
__________________
![]() ICQ 16 91 547 - SKYPE dutchteencash bob AT dutchteencash DOT com ... did you see our newest Sweet Natural Girl Priscilla (18)? |
|
|
|
|
|
#9 |
|
Confirmed User
Industry Role:
Join Date: Mar 2004
Posts: 4,027
|
nm got it now thanks.
|
|
|
|
|
|
#10 |
|
Porn Meister
Industry Role:
Join Date: Feb 2005
Posts: 16,443
|
This will do only the month and day #:
<script type="text/javascript"> document.write(Date().substring(4,10)) </script>
__________________
43-922-863 Shut up and play your guitar.
|
|
|
|