Welcome Guest, Not a member yet? Register   Sign In
Date Helper to Euro Format
#1

[eluser]jongliko[/eluser]
Hi,

I'm new to CI and I can't figure out how to transform a Unix Time Stamp to dd/mm/yyyy with the date_helper.

Is it possible ?

Thanks for your help

Nicolas
#2

[eluser]jalalski[/eluser]
Well, it's standard PHP:
Code:
$datestr = date('d/m/Y', $unixtimestamp);

See http://php.net/date for all the options.
#3

[eluser]jongliko[/eluser]
Thanks for your answer.

I'm always trying to use the helpers provided by CI to discover every function of it. But of course it's difficult to do quicker than
Code:
date('d/m/Y', strtotime( $datetime))
to translate a datetime stamp. My bad. :-S

Thanks again for your help

Nicolas




Theme © iAndrew 2016 - Forum software by © MyBB