Updates to getDateTime method.