Skip to content

Latest commit

 

History

History

P73_QuarterOfDate

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Calculating the quarter of a given date:

Let’s consider that a java.util.Date is given. Write a program that returns the quarter containing this date as an integer (1, 2, 3, or 4) and as a string (Q1, Q2, Q3, or Q4).