I would like my dates to be formatted like this
dd-MM-yyyy HH:mm
which should result in
10-08-2008 15:30
However viewing data is currently formatted like this
10-09-2008 15:30:00
and when editing the values it is:
17. september 2008
I would like both formats to use this format string
dd-MM-yyyy HH:mm
And as i read it i should only set the FormatString property and this should result in both the edit and view format to be set correctly.
Below i attached my code:
puljeRounds.MasterGridViewTemplate.Columns.Add(new GridViewDateTimeColumn("Dato", "round_date") { FormatString = "{0:dd-MM-yyyy HH:mm}" }); |