wip
This commit is contained in:
@@ -212,11 +212,8 @@ function convertToOriginalFormat($apiPrice)
|
||||
|
||||
function lastDayOfMonth($month, $year)
|
||||
{
|
||||
// Create a DateTime object for the first day of the given month
|
||||
$date = new DateTime("$year-$month-01");
|
||||
// Modify the date to the last day of the same month
|
||||
$date->modify('last day of this month');
|
||||
|
||||
// Return the formatted date
|
||||
return $date->format('d');
|
||||
return $date;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user