I was try to measure what is faster and what should be the best way to compare two dates, from datetime record in MySql db. There are several approaches how to grab a date from date time, but I was concentrate on two one is to use DATE function and second is to use LEFT function, something like this
DATE(created_on)
, and for LEFT function
LEFT(created_on,10)
it look's like those functions work same on my side. is there any better solution? or faster solution?