![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
#4
| |||
| |||
|
#5
| |||
| |||
|
|
Why is it so difficult to do such a simple thing? I have a mySQL db where one field has a timestamp in it. And all I want to do is to display it on a page in a format people can read. Why is it so hard? |
|
Here is what I have ... ?php echo date('Y-m-j',strtotime($row_rsRefers['ReferralDate'])); ? And here is the result ..... Warning: date(): Windows does not support dates prior to midnight (00:00:00), January 1, 1970 in E:\koparadmin_main_website_asp\jobsfirst2\client_r eferrals.php on line 110 |
#6
| |||
| |||
|
|
its a timestamp field ..... see message above for what is happening now. If I change it to a Date field how do i get the date to automatically be stored and how will that effect current data? |
#7
| |||
| |||
|
#8
| |||
| |||
|
|
SELECT referrals.ClientID, referrals.JobOrderID, DATE_FORMAT(referrals.ReferralDate,'%M %e, %Y'), joborders.ID, joborders.EmployerName, joborders.EmployerCity, joborders.JobTitle, joborders.JobLocation FROM (joborders INNER JOIN referrals ON referrals.JobOrderID=joborders.ID) |
|
And this is what I have to display the date: ?php echo $row_rsRefers['DATE_FORMAT(referrals.ReferralDate']; ? |
#9
| |||
| |||
|
#10
| |||
| |||
|
|
Thanks Gary! That did the trick! Much apprecitaed. |
![]() |
| Thread Tools | |
| Display Modes | |
| |