Can someone please help me create a code using this prompt? Please do in Java. Thank you. “For many companies, it is important that dates are calculated accurately and consistently in all applications. Often, the organization will develop a general purpose date calculation application. You will be developing a class that can be used to calculate a variety of dates based on the parameters passed to the various methods included in the class.
The object you create for this assignment will contain the following methods:
convertToJulian
Parameter - string containing Gregorian date in "mm/dd/yyyy" format
Processing - convert Gregorian date to Julian date, remember to consider leap years
Return - integer Julian date in format yyyyddd
convertToGregorian
Parameter - integer containing Julian date in format yyyyddd - do not allow entry of date earlier than 1900001
Processing - convert Julian date to Gregorian date, remember to consider leap years
Return - string containing date in "mm/dd/yyyy" format
addSubtractDays
Parameters - string containing Gregorian date in format "mm/dd/yyyy" and integer containing number of days to add/subtract from the date (subtraction will be indicated by passing a negative integer)
Processing - convert date to Julian and add days to the Julian date, remember to consider leap years
Return - string containing date in "mm/dd/yyyy"
formatDateString
Parameter - string containing Gregorian date in format "mm/dd/yyyy"
Processing - convert Gregorian date to text string containing day of week, month name, day, and year (yyyy)
Return - string containing in the format of Day of Week, comma, Month Name day (no leading zero), year (yyyy) - e.g. Monday, March 5, 2024
daysDifferent
Parameters - string containing start Gregorian date in format "mm/dd/yyyy" and string containing end Julian date in format "mm/dd/yyyy"
Processing - find the number of days between the two dates, excluding the start and end date. Difference may be negative if the first date is greater than the second date
Return - integer containing the number of days between the 2 dates, may return negative value
Once you have created the class, you will write a program that will use the class to calculate each of the requested dates. The program should be set up to use a menu to select the method and then request input of the required information for the conversion from the keyboard. The program should loop so that each method can be selected until from the program is requested.”