reverted changes for date method