Is it possible to do DATE_SUB( ".$date." , INTERVAL 100 DAY ) if the type of the column where the date is stored is varchar(255) or I need to convert that column to “DATE” type?
Is it possible to do DATE_SUB( .$date. , INTERVAL 100 DAY ) if the
Share
Yes, it’s possible if you store your data in yyyy-mm-dd format.
Otherwise you ought to change it to this one.