Datepicker ile Türkçeleştirme Örneği

<!doctype html>
<html>
<head>
<meta charset=“utf-8”>
<title>Jquery Türkçe Tarih</title>
<link rel=“stylesheet” href=“//code.jquery.com/ui/1.12.0/themes/base/jquery-ui.css>
$( function() {
$( “#tarih” ).datepicker({
dateFormat: “dd-mm-yy”,
altFormat: “yy-mm-dd”,
altField:“#tarih-db”,
monthNames: [ “Ocak”, “Şubat”, “Mart”, “Nisan”, “Mayıs”, “Haziran”, “Temmuz”, “Ağustos”, “Eylül”, “Ekim”, “Kasım”, “Aralık” ],
dayNamesMin: [ “Pa”, “Pt”, “Sl”, “Ça”, “Pe”, “Cu”, “Ct” ],
firstDay:1
});
} );
</head>
<body>
<input id=“tarih” type=“text”>
<input type=“text” id=“tarih-db”><! type=“hidden” olması daha iyi olurdu. >
</body>
</html>
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: