Re:People in your organization that grow legacy code
by msluyter on Monday February 24, 2014 @09:34AM
(#7290950)
Well, this gets you the day of the week for whatever the current time is. The example in the article didn't do that exactly. It took a string of some sort (in what format, exactly, isn't clear to me) and mapped it to another string.
Assuming that the input string is a formatted date of some sort, then I think this would work, using JodaTime (minus exception handling):
Assuming that the input string is a formatted date of some sort, then I think this would work, using JodaTime (minus exception handling):