This should be VERY simple, but for some reason I've been looking at my query and the results for a while now, and I simply can't see anything wrong. I want to add a column to my results w/ a formatted date, instead of the timestamp value:
SELECT * , DATE_FORMAT( `sch_event_starting_timestamp` , '%Y-%m-%d' ) AS yyyymmdd
FROM `dc_s_events_v2_manage` LIMIT 0 , 30
For some reason, ALL my results have a NULL in the last column, but that sch_event_starting_timestamp does indeed have a valid timestamp value. ???
Any ideas?
Thanx,
Shaun