Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to get month name from given date using Javascript

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 193
    Comment on it

    Hello Reader's! On a date given like (03/25/2014) if you want to get the month name from it then by using JS you can do this as follow:-

     var objDate = new Date("12/12/2009"),
      locale = "en-us",
      month = objDate.toLocaleString(locale, { month: "long" });
    console.log(month); //it will print December in your console
    

    To print back in page return this function

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: