/// <summary>
 /// Converts a string value to an <code>XMPDateTime</code>.
 /// </summary>
 /// <param name="rawValue">
 ///            the string value </param>
 /// <returns> Returns an <code>XMPDateTime</code>-object. </returns>
 /// <exception cref="XmpException">
 ///             If the <code>rawValue</code> is <code>null</code> or empty or the
 ///             conversion fails. </exception>
 public static IXmpDateTime ConvertToDate(string rawValue)
 {
     if (string.IsNullOrEmpty(rawValue))
     {
         throw new XmpException("Empty convert-string", XmpError.BADVALUE);
     }
     return(Iso8601Converter.Parse(rawValue));
 }
 /// <summary>Convert from <c>XMPDateTime</c> to string.</summary>
 /// <param name="value">an <c>XMPDateTime</c></param>
 /// <returns>The string representation of the long.</returns>
 public static string ConvertFromDate(IXmpDateTime value)
 {
     return(Iso8601Converter.Render(value));
 }