e107help.org Q&A
0 like 0 dislike

Is there a simple method to convert the user last visit date to a normal format?  I can pull the info from the database no problem but its stored in a mumeric format

heres how the user_lastvisit is stored in the database: 1535877611 

I need to convert then display it something like:

9/18/2018 18:47


thanks you



closed with the note: solved
in Core by (30 points) 4
closed by

1 Answer

0 like 0 dislike

Your answer is first line of code example here:


You can use other parameter than relative. 


by (1.9k points) 15 46 57

For future reference: e107::getDateConvert()->convert_date(); 

Welcome to e107 Q&A, where you can ask questions and receive answers from other members of the e107 community.
935 questions
1,337 answers
2,318 users