Update today() function