Reputation: 11
I am using JQuery datepicker ,I want to set middle east time format in date picker. which is 1.30 hours less than my time.How it is possible
My Jquery code is
$("#effectiveDateId").datepicker({
inline: true,
//nextText: '→',
//prevText: '←',
showOtherMonths: true,
//dateFormat: 'dd MM yy',
//dayNamesMin: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
//showOn: "button",
buttonImage: "img/calendar-blue.png",
//buttonImageOnly: true,
dateFormat: 'dd/mm/yy'
});
Upvotes: 1
Views: 310
Reputation: 535
i hope solve your problem after read out this
date_default_timezone_set("Asia/Karachi"); echo date_default_timezone_get(); Generating a drop down list of timezones with PHP
http://php.net/manual/en/timezones.asia.phpenter link description here
Upvotes: 1