Latest date format (British) or (General)

`

//For Insert in date base--
$valid_from = ($_REQUEST['valid_from'] == '') ? '' : StringUtility::setFormatedDateBritish($_REQUEST['valid_from']);

//For view in textfield--
value="<?php ?echo ($valid_from == '') ? '' : StringUtility::getFormatedDateBritish($valid_from); ?>"

//if date format is simple then use?getFormatedDate instead of?getFormatedDateBritish

`

Leave a Reply

Your email address will not be published. Required fields are marked *