Fixing Depracated Date constructor.