/    Sign up×
Community /Pin to ProfileBookmark

Datepicker in mm/dd/yy format

Hello,
I have the below code with generate date format calender. It properly works for mm/dd/yy format

[code=php]

<html lang=”en”>
<head>
<meta charset=”utf-8″>
<title>jQuery UI Datepicker – Default functionality</title>
<link rel=”stylesheet” href=”http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css”>
<script src=”http://code.jquery.com/jquery-1.9.1.js”></script>
<script src=”http://code.jquery.com/ui/1.10.3/jquery-ui.js”></script>
<link rel=”stylesheet” href=”/resources/demos/style.css”>
<script>
$(function() {
$( “#datepicker” ).datepicker();
});
</script>
</head>
<body>

<p>Date: <input type=”text” id=”datepicker”></p>

</body>
</html>
[/code]

But i want datepicker in dd/mm/yy format. i.e 24/01/14 (dd/mm/yy) format
Can some one help me out. I am quite stuck.
Any kind of help is appreciated

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@ronexAug 03.2014 — Use this code for using the Datepicker in dd/mm/yy format :

$( "#datepicker" ).datepicker({ dateFormat: 'dd/mm/yy' });[/QUOTE]

jQuery UI is a big library. Try to use something light. You can also have a look at other useful jQuery Datepickers available.
Copy linkTweet thisAlerts:
@KrunalAug 04.2014 — Try Zebra_Date picker in this date picker there is an option for your format to set a date

visit this website for demo and show example no:8

http://stefangabos.ro/jquery/zebra-datepicker/
Copy linkTweet thisAlerts:
@fellowthetruAug 07.2014 — Use this
$(id).datepicker({dateFormat: "yyyy/mm/dd"});[/QUOTE]
×

Success!

Help @priyankagound spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...