Implemented autoupdate of datecode.