I've been playing around with storing date values as numbers (Integer/Long)
I'm interested in coding something to kind of "automate" it.
My thought was to use the field description to keep track of fields which should be considered dates, and then automating the storage as Integer and the display as Date.
I know I could use the functions I've written to convert to and from integer dates into queries/forms/reports, but I'd like to go a step further.
For eg.
fieldname | data type | description
startdate | ..integer.. | intdate
and then anytime I am putting data in that field, it would use the function to convert the date into an integer, and anytime I am displaying data from that field, it would use the function to convert the integer to a date, allowing me to avoid specifying those functions in every query/form/report.
Is this a wild goose chase? Possible?
TIA
I'm interested in coding something to kind of "automate" it.
My thought was to use the field description to keep track of fields which should be considered dates, and then automating the storage as Integer and the display as Date.
I know I could use the functions I've written to convert to and from integer dates into queries/forms/reports, but I'd like to go a step further.
For eg.
fieldname | data type | description
startdate | ..integer.. | intdate
and then anytime I am putting data in that field, it would use the function to convert the date into an integer, and anytime I am displaying data from that field, it would use the function to convert the integer to a date, allowing me to avoid specifying those functions in every query/form/report.
Is this a wild goose chase? Possible?
TIA