* fix type definitions * use day of week setting + fix multiple type errors * add locale for yyyy-mm-dd format