Forums

Datetime display in Confirmation page

HerKle 24 Jul, 2013
Hi,

it seems that the locale settings are ignored, when a datetime field is displayed in the Confirmation Page event. My datetime reads like mysql format. How can this be changed, since for 'view only' that format is not necessary?

Thanks again,
Herb
GreyHead 24 Jul, 2013
Hi Herb,

Add a Custom Code action before the Thank You page action and re-format the date. It will be something like this:
<?php
$form->data['formatted_date'] = date('Y-m-d', strtotime($form->data['unformatted_date']));
?>

Bob
This topic is locked and no more replies can be posted.