Skip to content

Tag: php-carbon

Carbon parse to ISO8601

I am trying to get the current time and format it like: “2018-09-26T21:40:29+02:00” But when I try: $isoDate = CarbonCarbon::now()->format(‘c’); as I understood passing a c to format function …

List Weeks of Year in a Month in PHP

The scenario I have here is that, I need to select a Year and Month. And I need to show the Weeks in that currently selected Month. Let me explain it here … 2017 -> Oct -> Week N ( this …