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
asked in Core by (30 points)
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. 

 

answered by (1.5k points) 5 16 21

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.
781 questions
1,189 answers
2,035 comments
2,139 users