The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Sorry if I post in the wrong forum.
I have created a new field called datetime and have this '".time()."', inserted in my sql statement. Of course it inserted as a weird # not the actual date/time. My question here is can someone show me how I can convert that into a date and time format? The output that I have is 1140887813 Thanks in advance |
#2
|
|||
|
|||
![]()
First of all you should use TIMENOW instead of time(). This will give you the same time during the whole execution of the script.
You can format dates using: PHP Code:
|
#3
|
|||
|
|||
![]()
Thank you for your response, can you tell me where do I put that PHP Codes? In the template or in the page itself? If in the php page itself, is it right where the SQL statement is?
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|