Ability to specify date format on input

Closes #16 
Using it for a number bigger than `maxlen` makes any sense? I'm asking that because I tried to use that implementation and it broke a test:

```
// format using DDD
pad(337, 3); // => 337, ok
// format using DD
pad(337, 2); // => 37, not ok
```