For example, today is Tuesday, 22-12-2012
For entry I have Wednesday
and the number three
.
I want these dates...
2021-12-23
2021-12-29
2022-01-05
echo \Carbon\Carbon::now()->next('Wednesday')->toDateString();
i want replace the Wednesday to the number, Because my input is Persian.
$numberWeek = [
'شنبه' => 0,
'یکشنبه' => 1,
'دوشنبه' => 2,
'سه شنبه' => 3,
'چهارشنبه' => 4,
'پنجشنبه' => 5,
'جمعه' => 6,
];
Can anyone help me?
Thanks everybody