[confirm] SkinSettings: Add possible values to the description of Change Date (Time) Format (1 Viewer)

chefkoch

Retired Team Member
  • Premium Supporter
  • October 5, 2004
    3,129
    1,634
    Dresden / Munich / Maastricht
    Home Country
    Germany Germany
    Currently the description of the settings when modifying the date or the time format only states:

    "Date format used in the skin. Use the format specification of the .net DateTime class."

    I guess "normal" user who is no developer does not know which values he has to fill in.
    Is it: H or h M or m or MMM and so on...


    I suggest to extend the description with the possible values and it's meaning.

    It would also be nice to have a live preview of the typed format, without the need to close the dialog by pressing OK.
    Maybe this could be done by having a preview label, maybe it is not needed at all.

    What do you think?
     

    Spragleknas

    Moderator
  • Team MediaPortal
  • December 21, 2005
    9,474
    1,822
    Located
    Home Country
    Norway Norway
    I think we should follow this up :)
    As I am a "normal" (not often I can state that!) user, I'd like to see what you propose :)
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    I would rather say we need to check where this setting is actually used and where not. Also how this is duplicated to the regional settings.

    So if there is no real use, I'd rather remove this setting. Or only reduce it to "short" and "long" date/time format.
     

    mrj

    Portal Pro
    January 27, 2012
    252
    100
    Hi
    Why not add a link to

    https://msdn.microsoft.com/en-us/library/system.globalization.datetimeformatinfo(v=vs.110).aspx

    Then all users can choose any format they like.
    mrj

    Here is a list of all the possible formats
    -------------------------------------------------------------------------------------

    Format specifier

    Associated properties

    "d" (short date; standard format string)

    ShortDatePattern, to define the overall format of the result string.

    "D" (long date; standard format string)

    LongDatePattern, to define the overall format of the result string.

    "f" (full date / short time; standard format string)

    LongDatePattern, to define the format of the date component of the result string.

    ShortTimePattern, to define the format of the time component of the result string.

    "F" (full date / long time; standard format string)

    LongDatePattern, to define the format of the date component of the result string.

    LongTimePattern, to define the format of the time component of the result string.

    "g" (general date / short time; standard format string)

    ShortDatePattern, to define the format of the date component of the result string.

    ShortTimePattern, to define the format of the time component of the result string.

    "G" (general date / long time; standard format string)

    ShortDatePattern, to define the format of the date component of the result string.

    LongTimePattern, to define the format of the time component of the result string.

    "M", "m" (month/day; standard format string)

    MonthDayPattern, to define the overall format of the result string.

    "O", "o" (round-trip date/time; standard format string)

    None.

    "R", "r" (RFC1123; standard format string)

    RFC1123Pattern, to define a result string that conforms to the RFC 1123 standard. The property is read-only.

    "s" (sortable date/time; standard format string)

    SortableDateTimePattern, to define a result string that conforms to the ISO 8601 standard. The property is read-only.

    "t" (short time; standard format string)

    ShortTimePattern, to define the overall format of the result string.

    "T" (long time; standard format string)

    LongTimePattern, to define the overall format of the result string.

    "u" (universal sortable date/time; standard format string)

    UniversalSortableDateTimePattern, to define a result string that conforms to the ISO 8601 standard for coordinated universal time. The property is read-only.

    "U" (universal full date/time; standard format string)

    FullDateTimePattern, to define the overall format of the result string.

    "Y", "y" (year month; standard format string)

    YearMonthPattern, to define the overall format of the result string.

    "ddd" (custom format specifier)

    AbbreviatedDayNames, to include the abbreviated name of the day of the week in the result string.

    "g", "gg" (custom format specifier)

    Calls the GetEraName method to insert the era name in the result string.

    "MMM" (custom format specifier)

    AbbreviatedMonthNames, to include the abbreviated month name in the result string.

    "MMMM" (custom format specifier)

    MonthNames or MonthGenitiveNames, to include the full month name in the result string.

    "t" (custom format specifier)

    AMDesignator or PMDesignator, to include the first character of the AM/PM designator in the result string.

    "tt" (custom format specifier)

    AMDesignator or PMDesignator, to include the full AM/PM designator in the result string.

    ":" (custom format specifier)

    TimeSeparator, to include the time separator in the result string.

    "/" (custom format specifier)

    DateSeparator, to include the date separator in the result string.
     

    Users who are viewing this thread

    Top Bottom