I would like to write a class CalculationDate which can deal with a date in numerical formation and text format and I have a nextDate method that returns the next day of the year. This class is written with a unit test which can test the proper treatment of leap year.
My question is how can I able to write a code to deal with the numerical formation and text format? I usually write a numerical one then write a function to convert it to text. If possible, can some one give an example code?
My question is how can I able to write a code to deal with the numerical formation and text format? I usually write a numerical one then write a function to convert it to text. If possible, can some one give an example code?
Comment