I have made a problem here. I have stored date into the database in a string format but now I am finding records on the basis of dates. and it is not working. What is the solution to this problem
datatype : varchar | data : eg. 01-10-2002
$current_month_balance =
tbl_wallet_detail::
whereMonth('start_date', date('m'))
->whereYear('start_date', date('Y'))
->get();
STR_TO_DATE(), remove the old columns, reame the new columns to be the old column names, check all the code that loaded these string dates and make sure it is now loading a date properly