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.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 06-19-2006, 12:16 PM   #1
clickhappy
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?
clickhappy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-19-2006, 12:17 PM   #2
pstation
Confirmed User
 
Join Date: Jul 2003
Location: chicago
Posts: 1,135
yeah, simple to do without a server-side language
pstation is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-19-2006, 12:18 PM   #3
flashbang
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
flashbang is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-19-2006, 12:18 PM   #4
pstation
Confirmed User
 
Join Date: Jul 2003
Location: chicago
Posts: 1,135
Code:
<script type="text/javascript">
document.write(Date())
</script>
pstation is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-19-2006, 12:19 PM   #5
Tom_PM
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.
Tom_PM is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-19-2006, 12:20 PM   #6
emmanuelle
Confirmed User
 
emmanuelle's Avatar
 
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>
emmanuelle is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-19-2006, 12:22 PM   #7
clickhappy
Confirmed User
 
Industry Role:
Join Date: Mar 2004
Posts: 4,027
Quote:
Originally Posted by pstation
Code:
<script type="text/javascript">
document.write(Date())
</script>
that works
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
clickhappy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-19-2006, 12:23 PM   #8
DutchTeenCash
I like Dutch Girls
 
DutchTeenCash's Avatar
 
Join Date: Feb 2003
Location: dutchteencash.com
Posts: 21,684
<java>
the date right now
</java>
DutchTeenCash is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-19-2006, 12:25 PM   #9
clickhappy
Confirmed User
 
Industry Role:
Join Date: Mar 2004
Posts: 4,027
nm got it now thanks.
clickhappy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-19-2006, 12:25 PM   #10
Tom_PM
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.
Tom_PM is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.