private _ISO9660TextDate convertDateTime2ISODate(DateTime value)
        {
            _ISO9660TextDate isodate = new _ISO9660TextDate();

            isodate.year           = value.Year.ToString("0000").ToCharArray();
            isodate.month          = value.Month.ToString("00").ToCharArray();
            isodate.day            = value.Day.ToString("00").ToCharArray();
            isodate.hour           = value.Hour.ToString("00").ToCharArray();
            isodate.minute         = value.Minute.ToString("00").ToCharArray();
            isodate.second         = value.Second.ToString("00").ToCharArray();
            isodate.secondHundreth = (value.Millisecond / 10).ToString("00").ToCharArray();
            return(isodate);
        }
 private DateTime convertISODate2DateTime(_ISO9660TextDate isodate)
 {
     if (new String(isodate.year) == "0000")
     {
         return(DateTime.MinValue);
     }
     else
     {
         return(new DateTime(
                    int.Parse(new String(isodate.year)),
                    int.Parse(new String(isodate.month)),
                    int.Parse(new String(isodate.day)),
                    int.Parse(new String(isodate.hour)),
                    int.Parse(new String(isodate.minute)),
                    int.Parse(new String(isodate.second)),
                    int.Parse(new String(isodate.secondHundreth)) * 10
                    ));
     }
 }
 private DateTime convertISODate2DateTime(_ISO9660TextDate isodate)
 {
     return new DateTime(
             int.Parse(new String(isodate.year)),
             int.Parse(new String(isodate.month)),
             int.Parse(new String(isodate.day)),
             int.Parse(new String(isodate.hour)),
             int.Parse(new String(isodate.minute)),
             int.Parse(new String(isodate.second)),
             int.Parse(new String(isodate.secondHundreth))*10
         );
 }
 private _ISO9660TextDate convertDateTime2ISODate(DateTime value)
 {
     _ISO9660TextDate isodate = new _ISO9660TextDate();
     isodate.year = value.Year.ToString("0000").ToCharArray();
     isodate.month = value.Month.ToString("00").ToCharArray();
     isodate.day = value.Day.ToString("00").ToCharArray();
     isodate.hour = value.Hour.ToString("00").ToCharArray();
     isodate.minute = value.Minute.ToString("00").ToCharArray();
     isodate.second = value.Second.ToString("00").ToCharArray();
     isodate.secondHundreth = (value.Millisecond/10).ToString("00").ToCharArray();
     return isodate;
 }