public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            DateTime dt = TypeSystem.GetValueDateTime(value);

            if (dt == DateTime.MinValue)
            {
                return(string.Empty);
            }
            else
            {
                return(dt.GetUTCDateString(culture));
            }
        }
        /// <summary>
        /// Gets the RegValue datetime.
        /// </summary>
        /// <param name="subKey">The sub key.</param>
        /// <param name="keyName">Name of the key.</param>
        /// <param name="defaultValue">The default value.</param>
        /// <returns>Value from the key.</returns>
        public static DateTime GetValueDateTime(this RegistryKey regKey, string subKey, string keyName, double defaultValue)
        {
            string sValue = GetValueString(regKey, subKey, keyName, string.Empty);

            return(TypeSystem.GetValueDateTime(sValue));
        }
 public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
 {
     return(TypeSystem.GetValueDateTime(value));
 }