currenDate function and postheaderinfo function