Utils get date method corrections and tests