Various date related functionality improved/added