Dates

- Converted atoi to strtol, and added the missing include.