Topic: How To Change Format Datetime In TableGrid
How To Change Format Datetime In TableGrid ???

Easy For Beginner Student For Me
My Visual Database → Script → How To Change Format Datetime In TableGrid
How To Change Format Datetime In TableGrid ???

There may be several solutions:
1. Create a calculated field with the TEXT field type. In this field, you use the strftime() function to form the date sequence you need.
Output this calculated field to the table.
2. In the OnChange table event, write a command to change the display of the date and time. Something like this: tnxdatecolumn(Form1.TableGrid1.Columns[с]).formatmask := 'yyyy-mm-dd hh:mm:ss';
It should be noted that the second option, when large volumes of information are output to a table or Excel, MAY affect the speed
of displaying the results.
Thank You sparrow
I Try Solution 1 Create a calculated field with the TEXT field type And Use Query Converter Text To Format It OK ...
But
Solution 2 tnxdatecolumn(Form1.TableGrid1.Columns[с]).formatmask := 'yyyy-mm-dd hh:mm:ss'
Nothing has changed
It would be great if you could show me a sample project.
I give you a really working code.
tnxdatecolumn(Form1.TableGrid1.Columns[с]).formatmask := 'yyyy-mm-dd hh:mm:ss';
I hope you substituted your column number instead of "с" in square brackets.
Thank You sparrow
I Try Solution 1 Create a calculated field with the TEXT field type And Use Query Converter Text To Format It OK ...
But
Solution 2 tnxdatecolumn(Form1.TableGrid1.Columns[с]).formatmask := 'yyyy-mm-dd hh:mm:ss'
Nothing has changed
It would be great if you could show me a sample project.
Don't forget add Script call on (OnChange) for TableGrid
My Visual Database → Script → How To Change Format Datetime In TableGrid
Powered by PunBB, supported by Informer Technologies, Inc.
Theme Hydrogen by Kushi