Need a simple Javascript(?)

Discussion in 'Programming' started by Zzang, Sep 12, 2008.

  1. #1
    Hey everyone,

    I'm looking for a script to be made to put on one of my web pages that displays the CURRENT month/year Preferably like: "September, 2008"

    I do not want any hidden links in the coding.

    If you are interested in this please:

    1. PM me with a QUOTE - Alternate Contact Method (AIM/MSN/SKYPE/Gtalk/Yahoo)
    2. Let me know your ETA of completing the task.

    I will contact you asap.

    Thanks,
     
    Zzang, Sep 12, 2008 IP
  2. matthewrobertbell

    matthewrobertbell Peon

    Messages:
    781
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    If you have php, you can use php.net/date

    eg
    <?php echo date('F, Y'); ?>
    PHP:
     
    matthewrobertbell, Sep 12, 2008 IP
  3. ritesh8385

    ritesh8385 Well-Known Member

    Messages:
    525
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    130
    As Seller:
    100% - 0
    As Buyer:
    40.0% - 2
    #3
    <!-- Begin
    var months=new Array(13);
    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";
    var time=new Date();
    var lmonth=months[time.getMonth() + 1];
    var date=time.getDate();
    var year=time.getYear();
    if (year<100) year="19" + time.getYear();
    else year=time.getYear();
    document.write("<center>" + lmonth + " ");
    document.write(date + ", " + year + "</center>");
    // End -->
    </SCRIPT>
    </CENTER>
    <!-- END OF SCRIPT -->

    your script
    hope it works.
    :)
     
    ritesh8385, Sep 13, 2008 IP