i want to select only month and year from dateTime field in database i tried this
$historyMonth = App\Models\HistoryCostEstimation::where('user_id',$id)->orderBy('created_at','desc')->toDateString('Y-m')->get();
but it isn't working is there any suggestion ?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire