![]() |
date_format
This is related to the PHP widget question I had
I have this code Code:
SELECT date_format(gig.date, '%a %D %b %Y') AS gig_date, Code:
510025a 17th Dec 2009 Code:
Thurs 17th Dec 2009 |
Are you sure gig.date is a valid date? This might be useful: http://www.w3schools.com/SQL/func_date_format.asp Scroll to the bottom for examples. Otherwise I'd guess your error lies somewhere else in your code.
|
Yeah the gig.date is 2009-12-17 and the code works fine on vb3 but in vb4 it displays with the numbers at the start rather than the Day.
Something very odd happening. --------------- Added 18 Dec 2009 at 10:54 --------------- ok jsut realised that when you save the widget the Code:
SELECT date_format(gig.date, '%a %D %b %Y') Code:
SELECT date_format(gig.date, '% u0025 a %D %b %Y') |
For the record this was a bug in the PHP widget. vBulletin have it at confirmed pending so should be fixed after rc4.
|
That's a weird one - good catch!
|
Yup very strange.
|
All times are GMT. The time now is 06:07 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|