Get current date in DD-Mon-YYY format in JavaScript Jquery

0 votes
I need to get the date format as 'DD-Mon-YYYY' in javascript. I had asked a question, and it got marked duplicate to jQuery date formatting. But, the answers provided in the question are to get the current date in "DD-MM-YYYY" format and not "DD-MON-YYYY". Secondly, I am not using datepicker plugin.

Can you please help me as if how to get the current date in "DD-Mon-YYYY" format.
Jun 23, 2022 in Web Development by gaurav
• 23,260 points
1,292 views

1 answer to this question.

0 votes

Get Current Date In DD-Mon-YYY Format In JavaScript/Jquery

  1. <script>
  2. var m_names = new Array("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec");
  3. var d = new Date();
  4. var curr_date = d.getDate();
  5. var curr_month = d.getMonth();
  6. var curr_year = d.getFullYear();
answered Jun 28, 2022 by rajatha
• 7,680 points

Related Questions In Web Development

0 votes
1 answer

Get checkbox value in jQuery

To get the value of the Value ...READ MORE

answered Jun 23, 2022 in Web Development by rajatha
• 7,680 points
659 views
0 votes
1 answer

Get checkbox value in jQuery

if you have set a class or id for it, you ...READ MORE

answered Jun 23, 2022 in Web Development by rajatha
• 7,680 points
755 views
0 votes
0 answers

jQuery UI DatePicker - Change Date Format

I am using the UI DatePicker from ...READ MORE

Jun 23, 2022 in Web Development by gaurav
• 23,260 points
1,032 views
0 votes
1 answer

How to display current element in jQuery?

<! DOCTYPE html> <html> <head> <script> $(document). ready(function(){ $("button"). click(function(){ $("p"). text("Welcome to ...READ MORE

answered Jun 27, 2022 in Web Development by rajatha
• 7,680 points
1,388 views
0 votes
1 answer

Compare two dates with JavaScript

 The Date object will do what you ...READ MORE

answered Feb 18, 2022 in Java by Rahul
• 9,680 points
755 views
0 votes
0 answers

Javascript/Jquery returning tomorrows date, but skip Sundays

I want to get tomorrows date, but ...READ MORE

Jul 28, 2022 in Web Development by gaurav
• 23,260 points
423 views
0 votes
1 answer

jQuery Countdown get time until 10:00 am today or tomorrow

The following should work (console.log() was added for ...READ MORE

answered Aug 4, 2022 in Web Development by rajatha
• 7,680 points
1,739 views
0 votes
1 answer

What is jQuery?

Hey, jQuery is a fast and concise JavaScript ...READ MORE

answered Feb 14, 2020 in JQuery by kartik
• 37,520 points
1,352 views
0 votes
1 answer

Get current date in DD-Mon-YYY format in JavaScript/Jquery

get current date in jquery in dd/mm/yyyy ...READ MORE

answered Jun 27, 2022 in Web Development by rajatha
• 7,680 points
6,330 views
0 votes
1 answer

get Date between 2 dates in jquery with format (dddd MMMM Do, YYYY)?

This is fairly easy to achieve with ...READ MORE

answered Aug 5, 2022 in Web Development by rajatha
• 7,680 points
884 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP