Jump to content

[SOLVED] Having trouble with date_format


bigdspbandj

Recommended Posts

I am having trouble formating the date fielsds (date_time, or date_submitted and date_mailed).

 

$sql = "SELECT *, max(case when job_status.status_label='Submitted' then job_status.date_time else null end) as date_submitted, max(case when job_status.status_label='Mailed' then job_status.date_time else null end) as date_mailed FROM jobs INNER JOIN job_status ON job_status.job_id = jobs.id WHERE job_status.status_label = 'Submitted' OR job_status.status_label = 'Mailed' group by jobs.id";

Link to comment
https://forums.phpfreaks.com/topic/87758-solved-having-trouble-with-date_format/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.