<?php echo $form->textField($model,'start_time'); ?>
My field:start_time is int (10 ) type
How to display the datetime format in the textfield such as : 2012/6/18 15:26:00
<?php echo $form->textField($model,'start_time'); ?>
My field:start_time is int (10 ) type
How to display the datetime format in the textfield such as : 2012/6/18 15:26:00
add a maskā¦mask this field in the format u want.
this will help u
link
or simply use like this
<?php echo $form->textField($model,'patient_emergency_phone',array('id'=>'phone3')); ?>
add this to form
<script language="javascript" type="text/javascript">
jQuery(function($){
$("#phone3").mask("(999) 999-9999");
});
</script>