add archive date function