get cookie before get date