Hi, when you use the class Date::time()->format("%Y-%m-%d"), you can chosse the format of your date,
I want to do the same with a sql result like : ($newsrh->dateupload)->format("%Y-%m-%d"), is there a way to do it in fuel? is there a class format I didn't find it
thank you for your help
no i mean,i do a request in my database and display the result on my page, my fiel in the database is a date and I want to display my date with a correct format for the users. I hope I'm clear. thank you
That is what Jelmer explained.
As format string you can use any format supported by strftime(), and some shortcuts that are defined in app/config/date.php (you can add more if needed).