Make date conversion function more explicit
Complete output code for SURF.DAT file