Fix the date API

- Use Packet constructor instead of _packet
- import datetime module
- Fix the order of parameters for the "set date" protocol command