This is a migrated thread and some comments may be shown as answers.

Formatting options

3 Answers 47 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 23 Apr 2019, 11:47 PM

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.

3 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 24 Apr 2019, 12:18 PM
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.
0
Kevin
Top achievements
Rank 1
answered on 24 Apr 2019, 12:26 PM

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

0
Eyup
Telerik team
answered on 25 Apr 2019, 04:34 PM
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.
Tags
Date/Time Pickers
Asked by
Kevin
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Kevin
Top achievements
Rank 1
Share this question
or