Implement date subcommand

- Add help for date subcommand
- Add function to verify date format
- Strip trailing whitespace from core.lua