Labels

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. 

<SCRIPT LANGUAGE="JavaScript">
    var now = new Date();

    var days = new Array('Sunday','Monday','Tuesday',
        'Wednesday','Thursday','Friday','Saturday');

    var months = new Array('January','February','March','April',
        'May','June','July','August','September',
        'October','November','December');

    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())) ;

    document.write(today);
</script>

Result:

Thursday, January 25, 2016

60 comments:

  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..

    ReplyDelete
  2. great post. http://www.mahimegh.com/

    ReplyDelete
  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     

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

    Teknoloji Haberleri

    ReplyDelete
  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

    ReplyDelete
  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

    ReplyDelete
  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

    ReplyDelete
  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

    ReplyDelete
  9. I am extremely intrigued with your article. I adore the manner in which you compose this article.
    Much obliged to you for imparting this awesome post to us. Brother Printer Sleep Mode Off

    ReplyDelete
  10. I really appreciate the kind of topics you post here. Thanks for sharing us a great information that is actually helpful. Good day!

    Math Tutors

    Private Tutor

    Online Tutors

    ReplyDelete
  11. Hello Friends, I am Allia a High Profile Hot Pune Escorts. I am only 23 and living in Pune. If you are looking Hot Pune Escorts in your bed then visit my website today and booking.I am availbale 24/7.

    Pune Escorts
    Pune Escort
    Escorts Pune
    Pune Escorts Service
    Escorts in Pune
    Escort Services in Pune
    Call Girls in Pune

    ReplyDelete
  12. I simply wanted to write down a quick word to say thanks to you for those wonderful tips and hints you are showing on this site.
    interior designers in chennai

    ReplyDelete
  13. We will make you remember our escort services throughout your life.
    Make your Event Special With Our Independent Dehradun Call Girls With Hot Pictures

    A presentable, broad minded and sizzling escort from Rich Flavours can make your events even more exceptional with a feeling of a hot and sexy companion who can definitely make your friends jealous. Our Goa Student Call Girls can give you a warm feelings with extra ordinary personal touch.
    Mesmerizing Trips Escort (NOTE: We R Provide Travel Partner Female)

    Planning to go for a long trip?? And wants to add up some spices to make it tasty?? Want to make your smile broad?? If yes then our hot, sizzling and spicy escorts are available for you in Dehradun, Mussoorie, round the clock.
    Holidays With Sizzling Escort

    We are here to make your holidays unforgettable throughout your life, our hot and sizzling Escorts can make your holidays best than ever,
    Mussoorie Busty Escort Service we assure the pleasant time of your life that you missed somewhere in the need of making bread and butter but Rich flavours is here to feel you alive and a best living being on this earth, we believe on the theory of feeling, expression and execution of our inner thoughts.

    Select Pictures Of Dehradun Student Girls

    Dehradun Female Escorts

    Mussoorie Busty Female Escort Girls Photo

    Goa Dream Girls

    Haryana Call Girls

    More City Student Escorts

    ReplyDelete
  14. This is also a very good post which I really enjoyed reading. It is not every day that I have the possibility to see something like this .. ahocbdoil.com

    ReplyDelete
  15. Hello I am Isajain Pune Escorts you have shared magnificent article. I truly like and value your work. The focuses you have referenced in this article are useful,Excellent perused, Positive site, where did u thought of the data on this posting? I have perused a couple of the articles on your site now, and I truly like your style. Thank you so much obliged and please keep up the compelling work
    Visit my Website just click :

    Chennai Escorts
    Kolkata Escorts
    Indore Escorts
    Surat Escorts
    Morbi Escorts
    Hyderabad Escorts
    Ahmedabad Escorts

    ReplyDelete
  16. This comment has been removed by the author.

    ReplyDelete
  17. Your post is really nice and informative! If you're searching for Internship in Indore then please check out our blog.

    ReplyDelete
  18. I’ve viewed some different blog posts with regards to this topic, and I must state that yours shows the most insight. Thanks a lot for expressing your opinions with everyone here!

    Home Tutors

    ReplyDelete
  19. Thanks for sharing this information. It is really helpful. Please visit our blog also.
    "Beauty Blog"

    ReplyDelete
  20. Forex Signals, MT4 and MT5 Indicators, Strategies, Expert Advisors, Forex News, Technical Analysis and Trade Updates in the FOREX IN WORLD

    Forex Signals Forex Strategies Forex Indicators Forex News Forex World

    ReplyDelete
  21. I am an enthusiastic writer. While surfing the internet, I found this site Mom Blog Names which seemed to be very interesting and informative.

    ReplyDelete
  22. Thanks for sharing such information. This is really helpful for me. You can also visit our blog.
    "Mom Blog Names"

    ReplyDelete
  23. Thanks for sharing this information. It is really helpful. Please visit our blog also ."Mom Blog Names"

    ReplyDelete
  24. Thanks for sharing this information. It is really helpful. Please visit our blog also ."Mom Blog Names"

    ReplyDelete
  25. hey,
    your website has very useful information..
    Thnaks for sharing
    Please do visit our blog too..
    Blogs for Women

    ReplyDelete
  26. This website has very nice use ful information and do visit our blog

    ReplyDelete

  27. Thanks for such an informative guide. This will be so helpful when people purchase Microsoft Project Standard 2019 software.

    https://digitalsoftwarestore4u.com/product/microsoft-project-standard-2019/
    https://digitalsoftwarestore4u.com/product/microsoft-visio-standard-1-pc-2019/

    ReplyDelete
  28. Thank you so much for sharing this blog with us. It provides a collection of useful information. You obviously put a lot of effort into it!

    Online Tutoring Jobs UK

    ReplyDelete
  29. This is a very nice post. Thanks for sharing it. You must visit us too and learn How to Discover Investors For Startup and get complete knowledge, support and ideas for your startup business.

    ReplyDelete
  30. Hi! I'm shruti. This is my first comment here so I just wanted to give a quick shout out and say I genuinely enjoy reading your blog posts. Can you recommend any other <a href='http://microniche.world/best-niches-for-affiliate-marketing/>Niches for Affiliate Marketing</a> blogs that go over the same topics? Thanks a ton!

    ReplyDelete
  31. nice looking sites and great work. Pretty nice information. it has a better understanding. thanks for spending time on it.
    fournisseur de mobilier in cote d'ivoire

    ReplyDelete
  32. Nice Post. Thanks for Sharing, Very helpful. You must visit us too and learn How spend judiciously after with Seed Funding. We give complete support to all new startups from Execution to Investment. Register for free with us.

    ReplyDelete
  33. Hi! This is my first comment here so I just wanted to give a quick shout out and say I genuinely enjoy reading your blog posts. Can you recommend any other <a href='http://microniche.world/best-niches-for-affiliate-marketing/>Niches for Affiliate Marketing</a> blogs that go over the same topics? Thanks a ton!

    ReplyDelete
  34. Hi! I'm Pragya Gupta This is my first comment here so I just wanted to give a quick shout out and say I genuinely enjoy reading your blog posts. Can you recommend any other <a href='http://microniche.world/best-niches-for-affiliate-marketing/>Niches for Affiliate Marketing</a> blogs that go over the same topics? Thanks a ton!

    ReplyDelete

More Posts

FOLLOW