Well, I save the date's with minutes and second in my database.
And I want to check if the date from my db = to date today
.
I read about this, and I don't know how to use in Date_format
Maybe because my Date
is varchar(255)..
Thanks for helps (:
EDIT:
Thanks all (:
Here you go:
try this code:
You need a date in date format like timestamp for an efficient search.
With this format you can make some search like :
You just need simple conversion when you are having ur date in
varchar
. Your query should be like:OUTPUT
SELECT DATE_FORMAT(date_created, '%Y/%m/%d') FROM
sometable
Its not answer, I have a small problem..
I tried it:
.
Its working now (:
Thanks for all!!