I get this error in my dates function
when my in panel this code calls the function fecha,only when it calls the date it throws the error, the status and the amount,