Added Log4Net for debugging.
Fix the issue in potential datetime format issue.