We help IT Professionals succeed at work.
Get Started

Selecting Date from Current_timestamp Field

dloj asked
Last Modified: 2015-06-08
Hi Everyone,
I am creating a mySQL table where one column is last_updated.  I have that as timestamp Type and default CURRENT_TIMESTAMP.  So as people fill out the form to get on the list it marks when they filled out the form.

Through Dreamweaver I am creating a page where the members of the list and shown with the last_updated column.  My issue is I only want the date and not the time to populate the field.  

I have tried DATE_FORMAT('%m %d %y', last_updated) AS DATE and for my table code I have
<td><?php echo $row_Recordset3['DATE']; ?></td>  

It is not working but I am getting no errors just nothing shows up in the last_updated column on the page showing the members of the list.

I am not sure if I have to first separate the date and time from the CURRENT_TIMESTAMP data.  

Any suggestions would be appreciated, thanks in advance.
Watch Question
Most Valuable Expert 2011
Author of the Year 2014
This problem has been solved!
Unlock 1 Answer and 12 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE