read file & convert to date