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

Replace DateTime to just Date

1 Answer 295 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Rutuja
Top achievements
Rank 1
Rutuja asked on 09 Aug 2017, 05:26 PM

We are passing these fields as regular dates from SQL, however telerik is converting them to Date and Time stamp, which we do not want.

Please tell us a way to add 'Date' DataType to a field and not DateTime.

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 10 Aug 2017, 08:06 AM
Hello Rutuja, 

Thank you for writing.  

RadGridView uses GridViewDateTimeColumn for displaying dates. You may enter the date and time directly into the editor or drop down the calendar to choose a date. The FormatString property sets the format of the date when the date is not currently being edited. The CustomFormat property is used to format the date once the user clicks on the cell to invoke the editor. Thus, you can specify the desired format for displaying only the date part of the DateTime value. Additional information for the GridViewDateTimeColumn is available in the following help article: http://docs.telerik.com/devtools/winforms/gridview/columns/column-types/gridviewdatetimecolumn

I hope this information helps. Should you have further questions I would be glad to help.

Regards,
Dess
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
GridView
Asked by
Rutuja
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or