Formatting options

4 posts, 0 answers
  1. Kevin
    Kevin avatar
    36 posts
    Member since:
    Jul 2018

    Posted 23 Apr Link to this post

    In the demos I was able to see something like 

    .Format("MMMM yyyy")

    But I have been unable to find the valid values for the string input or documentation on the Format method itself. I am obviously looking in the wrong place. Where should I look?

    Thank you.

  2. Eyup
    Admin
    Eyup avatar
    3841 posts

    Posted 24 Apr Link to this post

    Hi Kevin,

    These are the articles which will clear up the questions regarding the format configuration:
    https://docs.telerik.com/kendo-ui/api/javascript/ui/grid/configuration/columns.format
    https://docs.telerik.com/kendo-ui/api/javascript/kendo/methods/format
    https://docs.telerik.com/kendo-ui/framework/globalization/numberformatting

    I hope this will prove helpful.

    Regards,
    Eyup
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  3. Kevin
    Kevin avatar
    36 posts
    Member since:
    Jul 2018

    Posted 24 Apr in reply to Eyup Link to this post

    Thank you. I was unable to find what are the  options. Like what does YYYY mean? Or is MMM an option? What about MMMM? In the context of a date picker does the 'format' specify the format once a date from the picker has been selected? 

    Kevin

  4. Eyup
    Admin
    Eyup avatar
    3841 posts

    Posted 25 Apr Link to this post

    Hello Kevin,

    These abbreviations are not Telerik specific, but rather representations acknowledged globally, e.g. Microsoft:
    https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-date-and-time-format-strings

    Four times "y" for example means the year in four digits:
    https://docs.microsoft.com/en-us/dotnet/standard/base-types/custom-date-and-time-format-strings

    Regards,
    Eyup
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top