Dear experts,
I want to display my date (unixtime in database) to display in a specified format (e.g: 12-10-2013) and saving back using unixtime again.
ProductPurchaseForm.php
class ProductPurchaseForm extends Form
{
    $publish_time = new Text('publish_time', array('class'=>'form-control input-lg'));
    $this->add($publish_time);
}edit.html
<form id="product-purchase-update-form" class="form-horizontal" method="post" role="form">
    {{ form.render("publish_time") }}
</form>ProductPurchaseController.php
public function saveAction()
{
    if ($this->request->isPost())
    {
        ProductPurchase::save();
    }
}Where should I put the date filter for displaying with a specified format?
Thank you so much
Jim