Omniscient FAQ-service

How do I get the date part of a timestamp in MySQL?

# Version 4.1.1+
DATE(timestamp)

# Older versions
DATE_FORMAT(timestamp, '%Y-%m-%d')

Question posted 2008-04-12 10:13:29. Answered by FAQ TA® 2008-04-12 10:33:25.