Skip to content

Instantly share code, notes, and snippets.

@AlbinoDrought
Created December 8, 2020 23:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlbinoDrought/ec21231c5f5ba81690586113f9b2a224 to your computer and use it in GitHub Desktop.
Save AlbinoDrought/ec21231c5f5ba81690586113f9b2a224 to your computer and use it in GitHub Desktop.
>>> \Carbon\Carbon::parse('2020-12-31T00:00:00Z')->subMonth()->toIso8601String()
=> "2020-12-01T00:00:00+00:00"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment