Simple question: How to get carbon get quarter for future date? Example: Given datetime: 2023-05-03 14:34:09 I want print which quarter will be using Carbon
Note: {{ $date->quarter }}
works for 2018-11-04 17:40:05
CodePudding user response:
{{ $date->year .'-Q' . $date->quarter }}
gives 2023-Q2