include createDate util function