Home > Net >  Column in the Gridcontrol binding Dateedit how to change the date format?
Column in the Gridcontrol binding Dateedit how to change the date format?

Time:10-22

My Gridcontrol binding the dataset, the time field, binding the time controls Dateedit,
What I want is the yyyyMMdd format of the data,

I will Dateedit these three attributes, displayFormat, editFormat, mask, is set to the yyyyMMdd format, only show values into the yyyyMMdd format, when I use the dataset to take the number of the dataset. The Tables [0]. Rows [I] [r]. "date field" tostring (), is still yyyy/MM/dd H: MM: ss format, could you tell me how to get the format of the access to get the uniform?

As shown in figure, display is 20201008, but the actual value of 2020/10/8 0:00:00

CodePudding user response:

As a string to the backend to unity

CodePudding user response:

reference 1/f, the rabbit family - second brother reply:
as a string to the backend to unity and
can't through configuration, let directly fixed format?
  •  Tags:  
  • C#
  • Related