set post date when creating post, retrieve post date