Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DATE_FORMAT

Status
Not open for further replies.

Elmserv

Programmer
Sep 25, 2004
72
GB
I am trying to use this function to format the date from a table.


The result I am getting is "Fatal error: Call to undefined function date_format()"

phpinfo tells me the version is 5.0.4

Any ideas Please

Rich

 
the function date_format is only available in PHP versions over 5.1. 5.04 is not over 5.1.


PHP online manual said:
date_format

(PHP 5 >= 5.1.0RC1)

for other versions use [blue]date()[/blue].

----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
the OP may be talking about the date_format function within mysql (as he is taking it from a table).
 
I was talking about the date_format function in PHP
I have managed to solve it with

date("d/m/Y",strtotime(deldate));

deldate = delivery date

Thanks for your valuable help

Richard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top