MacOS (and others) "date" command don't support all the options that GNU date has. So don't depend on that, add a small python program for this.