Problem 1 As an analyst, you had to present the quarterly performance results of your client. The data which you were provided was on daily basis. To complete this task, you needed to extract the quarter from a given date. For example: if the date lies between 1st Jan, 2020 - 31st March, 2020, you need to extract the corresponding quarter as '2020-Q1'
if the date lies between 1st April, 2020 - 30th June, 2020, the extracted quarter will be '2020-Q2'
if the date lies between 1st July, 2020 - 30th September, 2020, the extracted quarter will be '2020-Q3'
if the date lies between 1st October, 2020 - 31st Decemeber, 2020 then the extracted quarter will be '2020-Q4'