?
Solved

jquery datepicker format

Posted on 2011-10-26
1
Medium Priority
?
323 Views
Last Modified: 2012-08-14
Hi experts,

I m using Jquery Datepicker in my website. What should I do to get the date it returns in a different format.

Here is my line of code

var dte = $("#start-date").datepicker("getDate");

thanks

0
Comment
Question by:erezabou
1 Comment
 
LVL 83

Accepted Solution

by:
leakim971 earned 2000 total points
ID: 37029866
this is for you : http://docs.jquery.com/UI/Datepicker/$.datepicker.formatDate

var dte = $.datepicker.formatDate('yy-mm-dd', $("#start-date").datepicker("getDate") );
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my daily work (mainly using ASP.net), I need to write a lot of JavaScript code. One of the most repetitive tasks I do are the jQuery Ajax calls. You know: (CODE) I don't know if for you it's the same, but for me is soooo tedious to write the …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

616 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question