Update date.cc

1.Changed atoi implementation to either strtol if its is 32bit system and strtoll if it is 64bit system therefore now date_span can accumulate more entries if System is 64bit.
2.Also checked for overflow and underflow conditions using errno and switch case.