Date functions removed from common.py