/// <summary>
        /// Convert back function.
        /// </summary>
        /// <param name="value">The source value.</param>
        /// <param name="targetType">The target type.</param>
        /// <param name="parameter">The parameter.</param>
        /// <param name="culture">The culture info.</param>
        /// <returns>The converted back value.</returns>
        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            DateConverter dateConverter = new DateConverter();

            try
            {
                object convertedDate = dateConverter.ConvertFromString(value.ToString());
                return(convertedDate);
            }
            catch (ArgumentException)
            {
                if (value.ToString().Split("-".ToCharArray(), StringSplitOptions.RemoveEmptyEntries).Length == 3)
                {
                    string[] parts = value.ToString().Split(new string[] { "-" }, StringSplitOptions.RemoveEmptyEntries);
                    int      month = 1;

                    switch (parts[1].ToLower(culture).Trim())
                    {
                    case "jan":
                        month = 1;
                        break;

                    case "feb":
                        month = 2;
                        break;

                    case "mar":
                        month = 3;
                        break;

                    case "apr":
                        month = 4;
                        break;

                    case "may":
                        month = 5;
                        break;

                    case "jun":
                        month = 6;
                        break;

                    case "jul":
                        month = 7;
                        break;

                    case "aug":
                        month = 8;
                        break;

                    case "sep":
                        month = 9;
                        break;

                    case "oct":
                        month = 10;
                        break;

                    case "nov":
                        month = 11;
                        break;

                    case "dec":
                        month = 12;
                        break;
                    }

                    DateTime date = DateTime.Now;
                    try
                    {
                        date = new DateTime(int.Parse(parts[2], CultureInfo.CurrentCulture), month, int.Parse(parts[0], culture));
                        return(date);
                    }
                    catch (ArgumentException)
                    {
                    }
                    catch (FormatException)
                    {
                    }
                }
            }

            return(null);
        }