In GridDataControl, you can load DateTimeEdit CellType by defining GridDataDateTimeVisibleColumn or by setting CellType property of GridDataVisibleColumn.ColumnStyle to DateTimeEdit.
The various formats available in DateTimePattern are as follows.
Where M= month, d=date, yyyy= year in four digits, HH= hour, mm=minutes, ss=seconds, Z= universal time designator.
In case, the default patterns do not meet your requirements, you can customize the date and time format by setting DateTimePattern Property as CustomPattern and define your own format for CustomPattern in the GridDataDateTimeEditInfo.
An example for custom format is displayed in the following code sample.
Here the CustomPattern format is defined as “M/d/yyyy HH:mm:ss”. The following screenshot displays the output for the above code in the “GridDataControl”.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:||.NET Framework:||Product Version:|
or the page will be automatically redirected to sign-in page in 10 seconds.