Search Results
Set a date according to the ISO 8601 standard - using weeks and day offsets rather than specific dates. Like DateTimeImmutable::setISODate () but works with DateTime. The procedural version takes the DateTime object as its first argument.
The setISODate method sets the date in the DateTime object according to the ISO 8601 standard, using the week number and the day of the week. The first parameter is the year, the second is the week number, and the third is the day of the week (from 1 to 7, where 1 is Monday).
Execute DateTime::setISODate Online. Info and examples on DateTime::setISODate PHP Function from Date and Time - Date and Time Related Extensions
Configure une date au format ISO 8601 : en utilisant des décalages de semaines et de jours, au lieu de dates spécifiques. Comme DateTimeImmutable:: setISODate () mais fonctionne avec DateTime. La version procédurale prend un objet DateTime comme premier argument.
Simple usage example of `DateTime::setISODate ()`. The DateTime::setISODate function is a built-in PHP function that sets the date of a DateTime object based on the ISO year, ISO week, and day number. It allows you to conveniently set the date using the ISO 8601 standard, which represents dates in a year-week-day format.
Year , week , day (optional ) as input to set ISO date by using setISODate function
Return Values Returns the DateTime object for method chaining or FALSE on failure.
