How To Keep The Previous Time In A Form Without Updating To Current Time In A Form

I’m new to Yii framework.

I have a form with the following field.

    <div class="row">

    	<?php echo $form->labelEx($model,'CreatedDate'); ?>

    	<?php echo $form->textField($model,'CreatedDate'); ?>

    	<?php echo $form->error($model,'CreatedDate'); ?>


I want this field to retain the same value which it had previously to be retained.

The database table which contains the above field has this value

  |CreatedDate        | datetime     | YES  |   

When I click on a submit button, this field gets updated to current time without retaining the previous datetime.

How can I keep the previous time without updating to current time.

Hi please see this

I hope it’s some help.