Updated the method of gettings todays date