Hello Abu. I have a grid with a field fo type DateTime with this format:
$col["formatoptions"] = array("srcformat"=>'Y-m-d H:i:s',"newformat"=>'h:i A',"opts" => array("timeOnly" => true, "timeFormat"=>"hh:mm tt"));
The problem i have is that i need a 24-hour format. I change timeFormat to
"timeFormat"=>"hh:mm G") but nothing.
On the other side where can i change the language to Spanish.
Thanks.
Montemaggiore, Sebastián.
For 24hour formatting, set:
$col["formatoptions"] = array("srcformat"=>'Y-m-d H:i:s',"newformat"=>'H:i',"opts" => array("timeOnly" => true, "timeFormat"=>"HH:mm"));
For localization you can set you language like:
<script>
$.timepicker.regional['ru'] = {
timeOnlyTitle: 'Выберите время',
timeText: 'Время',
hourText: 'Часы',
minuteText: 'Минуты',
secondText: 'Секунды',
millisecText: 'Миллисекунды',
timezoneText: 'Часовой пояс',
currentText: 'Сейчас',
closeText: 'Закрыть',
timeFormat: 'HH:mm',
amNames: ['AM', 'A'],
pmNames: ['PM', 'P'],
isRTL: false
};
$.timepicker.setDefaults($.timepicker.regional['ru']);
</script>