Default to CURRENT_DATE if pScheddate is null