Yii Framework Forum: Add Pm / Am Option To Time In Ejuidatetimepicker - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Add Pm / Am Option To Time In Ejuidatetimepicker jui.EJuiDateTimePicker' Rate Topic: -----

#1 User is offline   samilo 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 217
  • Joined: 04-October 12

Posted 14 March 2013 - 08:13 AM

Hi
I need to add pm/am option but I have no idea how ?
This my code
<?php

$this->widget(
	'ext.jui.EJuiDateTimePicker',
	array(
    	'model' 	=> $model,
    	'attribute' => 'time',
    	'language'=> 'ar',//default Yii::app()->language
     	'mode'	=> 'time',//'datetime' or 'time' ('datetime' default)
    	'options'   => array(
    	'timeFormat'=> 'hh:mm ',
    	'showAnim'=>'fold',

    	

        	//'timeFormat' => '',//'hh:mm tt' default
    	),
	)
);


?>


Thanks in advance
Yii :)
0

#2 User is offline   mirunho 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 170
  • Joined: 19-December 12
  • Location:Gdansk, Poland

Posted 14 March 2013 - 09:55 AM

try
        'options'   => array(
        'timeFormat'=> 'hh:mm ',
        'showAnim'=>'fold',
        'showMeridian'=>true
         ...)

0

#3 User is offline   samilo 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 217
  • Joined: 04-October 12

Posted 14 March 2013 - 03:54 PM

Thanks but not worked :(
Yii :)
0

#4 User is offline   mirunho 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 170
  • Joined: 19-December 12
  • Location:Gdansk, Poland

Posted 15 March 2013 - 02:26 AM

View Postsamilo, on 14 March 2013 - 03:54 PM, said:

Thanks but not worked :(

One more try
'timeFormat'=> 'hh:mm tt',

0

#5 User is offline   samilo 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 217
  • Joined: 04-October 12

Posted 15 March 2013 - 09:50 AM

Also Not Worked :(
Yii :)
0

#6 User is offline   waitforit 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 382
  • Joined: 09-February 11

Posted 15 March 2013 - 12:25 PM

I don't think this is implemented.

Try replacing the JS file with the latest one off the jquery plugin author's website?
0

#7 User is offline   samilo 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 217
  • Joined: 04-October 12

Posted 15 March 2013 - 02:03 PM

I used this ext
http://www.yiiframew...datetimepicker/
Yii :)
0

#8 User is offline   seenivasan 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 620
  • Joined: 17-June 12
  • Location:Chennai,TamilNadu,India.

Posted 15 March 2013 - 03:18 PM

Dear Friend

You can set the property "ampm" to true.

'options'   => array(
        'timeFormat'=> 'hh:mm tt',// tt is essential to display the am/pm
        'showAnim'=>'fold',
         'ampm'=>true, //default false.
        ),



Regards.
1

#9 User is offline   samilo 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 217
  • Joined: 04-October 12

Posted 15 March 2013 - 03:53 PM

Thanks my friend seenivasan , you always fix my problems :) also thanks mirunho for ur trying to find solutions
Yii :)
0

#10 User is offline   Marcolini 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 35
  • Joined: 16-March 12
  • Location:Portugal

Posted 02 April 2013 - 11:00 AM

thats the ticket :D

 'ampm'=>true, //default false.


seek alot to find this option lol!
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users