GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Script/java help please take a look (https://gfy.com/showthread.php?t=1085078)

Va2k 10-12-2012 11:27 AM

Script/java help please take a look
 
Hey folks what I am looking for is a little script that will show say todays date like Last Update: 10-12-2012 only! Not like, Last Update: Fri Oct 12 14:26:13 2012.

this is what I was using
Code:

<script>document.write(Date()+".")</script>

any smart peeps ready to help lol Thanks :thumbsup

Barry-xlovecam 10-12-2012 11:36 AM

https://www.google.com/search?client...utf-8&oe=utf-8 maybe find it here?

Django 10-12-2012 11:37 AM

just a couple of lines

Django 10-12-2012 11:38 AM

a couple of lines

Va2k 10-12-2012 11:38 AM

Quote:

Originally Posted by Barry-xlovecam (Post 19247512)

Thanks ive been looking there first but can only find date+time everything I've tried fails :(

Va2k 10-12-2012 11:38 AM

Quote:

Originally Posted by Django (Post 19247516)
just a couple of lines

couple lines what? :Oh crap

Colmike9 10-12-2012 11:39 AM

<script type="text/javascript">
var date = new Date();
var day = date.getDate();
var month = date.getMonth() + 1;
var year = date.getFullYear();
document.write("<b>Last Updated :</b> "+day + "-" + month + "-" + year);
</script>

:upsidedow

Va2k 10-12-2012 11:41 AM

Quote:

Originally Posted by Colmike7 (Post 19247523)
<script type="text/javascript">
var date = new Date();
var day = date.getDate();
var month = date.getMonth() + 1;
var year = date.getFullYear();
document.write("<b>Last Updated :</b> "+day + "-" + month + "-" + year);
</script>

:upsidedow

Thanks that worked great had to change + month + with day :) Thank you rthank you thank you

Colmike9 10-12-2012 11:42 AM

Quote:

Originally Posted by Fungus (Post 19247530)
That almost worked it shows Last Updated : 12-10-2012 looks like Dec 12 2012 anyway to make it 10-12-2012

<script type="text/javascript">
var date = new Date();
var day = date.getDate();
var month = date.getMonth() + 1;
var year = date.getFullYear();
document.write("<b>Last Updated :</b> "+month + "-" + day + "-" + year);
</script>

:upsidedow

Va2k 10-12-2012 11:43 AM

um Thread closed lmao Thanks everyone for the help

Vapid - BANNED FOR LIFE 10-12-2012 12:20 PM

scourged


All times are GMT -7. The time now is 07:32 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123