4D Database timestamp makes no sense
4D Database timestamp makes no sense
As part of the 4Dv11 upgrade timestamps were supposed to be included.
However once again 4D shows no developer sense in this feature:
When pull[ing] data from a 4D data source over ODBC … be aware that when accessed via ODBC or SQL, the DATE field is treated as a SQL Timestamp field.
Really? So what should I do with my existing ODBC web code? Oh no problem, just change your SQL statement to include DATE_TO_CHAR(my_field, "MM/DD/YY")
commands. Or write a function that strips the time away from the data field.
Want to use that stored timestamp value in 4D? Forget it. No variable type of C_TIMESTAMP
is available. Once again the features of the SQL engine cause developers headache on the pure 4D side.
Maybe someday in the future 4D engineering will get the features in both engines synchronized and making sense.
Author’s Note
Initial md
Generated using https://github.com/jsr6720/wordpress-html-scraper-to-md
Original Wordpress categories: [‘4D’]
Original Wordpress tags: “4D”, “datetime”, “odbc”, “time”
Original Wordpress comments: None
Significant revisions
tags: 2011, wordpress, txcowboycoder, 4D, datetime, odbc, time, data-types
- May 6th, 2024 Converted to jekyll markdown format and copied to personal site
- Jan 20th, 2011 Originally published on txcowboycoder wordpress site