DEBUGGING DATE ISSUE