Adding code to date