[REQ] Today's date script
2014-03-17, 10:19 PM,
#1
Hello, I'm lookin for a code with today's date, I want to be like that: Last Update: 17 March 2014

Thanks.
Reply
2014-03-17, 10:31 PM,
#2
Code:
Last updated:
<SCRIPT LANGUAGE="Javascript">
<!--

// Array of day names
var dayNames = new Array("Sunday","Monday","Tuesday","Wednesday",
            "Thursday","Friday","Saturday");

// Array of month Names
var monthNames = new Array(
"January","February","March","April","May","June","July",
"August","September","October","November","December");

var now = new Date();
document.write(dayNames[now.getDay()] + ", " +
monthNames[now.getMonth()] + " " +
now.getDate() + ", " + now.getFullYear());

// -->
</SCRIPT>
you can wrap it in <font> and style it.
Latest Thanks - View all

Hax(2014-03-21 04:40 AM) 
Reply
2014-03-17, 10:40 PM,
#3
(2014-03-17, 10:19 PM)Hax Wrote: Hello, I'm lookin for a code with today's date, I want to be like that: Last Update: 17 March 2014

Thanks.


What language you want the script in
javascript
PHP
ASP
VB

[Image: FtwuQgr.gif]
Reply
2014-03-17, 11:23 PM, (This post was last modified: 2014-03-17, 11:28 PM by Mr. Tokyo.)
#4
PHP Code:
<?php
    
echo "Last Update: "date("j F Y");
?>

JavaScript
Code:
<script type="text/javascript">
var months = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
var date = new Date();
var curr_date = date.getDate();
var curr_month = date.getMonth();
var curr_year = date.getFullYear();

document.write("Last Update: " + curr_date + " " + months[curr_month] + " " + curr_year);
</script>
Latest Thanks - View all

Hax(2014-03-21 04:40 AM) 
Reply
2014-03-17, 11:26 PM,
#5
vb.net: Label1.Text = DateTime.Now.ToString
C#: label1.Text = DateTime.Now.ToString();

Web languages are posted above.

"The master has failed more times than the beginner has even tried"

My VIP Shares:
How to stop Chrome from blocking PPI installers
How to make advanced, custom messageboxes that match your theme in VB.

PM ME FOR A 99% OFF DISCOUNT ON HOSTWINDS
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Where should I put <script> tags in HTML? Pirata 5 178 2017-12-03, 11:38 AM
Last Post: Pirata
  [JAVA SCRIPT] Need someone to make me an executable!!! CagelessBrain 0 112 2017-10-17, 04:09 AM
Last Post: CagelessBrain
  How To Detect get Script In Landing Page 5light 3 181 2017-10-05, 04:04 AM
Last Post: LB'Decoy
  [HELP] Codes/Script from a BH site to mine cracklings1017 3 190 2017-08-20, 10:58 AM
Last Post: FarrisFahad
  [ASK] Movie Streaming Website Script sonpink 18 4,018 2017-08-01, 11:19 AM
Last Post: imrichard





About Us | Contact Us | CPA Elites | Advertise | Stats | Staff Team

© 2013-2017 CPA Elites Ltd
Enhanced by MyBB and WallBB
Return to top