php (35) javascript (31) phpjavascript (30) jquery (23) html (20) mysql (14) database (9) codeigniter (4) json (4) bar chart (2) calendar (2) column chart (2) framework (2) google maps (2) query (2) tables (2) url (2) dropdown (1)

Thursday, January 25, 2018

How to Display Date Using Javascript?

This JavaScript code will display today date. 

    var now = new Date();

    var days = new Array('Sunday','Monday','Tuesday',

    var months = new Array('January','February','March','April',

    var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();

    function yearName(number)  {
        return (number < 1000) ? number + 1900 : number;
    today =  days[now.getDay()] + ", " +
        months[now.getMonth()] + " " +
        date + ", " +
        (yearName(now.getYear())) ;



Thursday, January 25, 2016


  1. Hello Admin!

    Thanks for the post. It was very interesting and meaningful. I really appreciate it! Keep updating stuffs like this. If you are looking for the Advertising Agency in Chennai | Printing in Chennai , Visit Inoventic Creative Agency Today..

  2. great post.

  3. Your post is very unique and reliable information for all readers to write more on the same topic and share with us your info...Thanks, Slide Business     

  4. Teknoloji ve İnternet dünyasından en son gelişmeleri güncel olarak takip edin.

    Teknoloji Haberleri

  5. It seems you are so busy in last month. The detail you shared about your work and it is really impressive that's why i am waiting for your post because i get the new ideas over here and you really write so well.
    interior decorators in chennai
    Modular kitchen in chennai

  6. It is better to engaged ourselves in activities we like. I liked the post. Thanks for sharing.
    Best Interior Designers
    home interiors in chennai
    Commercial interior designers in chennai

  7. You blog post is just completely quality and informative. Many new facts and information which I have not heard about before. Keep sharing more blog posts.
    Office interior designers in chennai
    living room interior designers in chennai
    False ceiling interiors designers in chennai

  8. I prefer to study this kind of material. Nicely written information in this post, the quality of content is fine and the conclusion is lovely. Things are very open and intensely clear explanation of issues
    Pooja room interior desingers in chennai
    Hotel Interior desingers in chennai
    Hospital interior designers in chennai


More Posts