modified date.cpp