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

example
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
teesha

 

 

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

1 Answer

0 like 0 dislike

Your answer is first line of code example here:

https://www.e107.sk/forum/online-advanced-info-menu-by-themadmonk/122/section-today-members-fixed/

You can use other parameter than relative. 

 

by (1.6k points) 3 4 5

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.
825 questions
1,225 answers
2,125 comments
807 users