Skip to main content
Question

Date on a grid edit report while in edit mode shows 1547942400000 for 1/20/2019

  • January 15, 2019
  • 0 replies
  • 21 views

In a grid edit report, I have a date field coming from a lookup table (where the date field is the primary key). It shows 1-20-2019 correctly when I click on the drop down arrow. Once I select it, and tab to the next column in the grid, it shows the number 154794240000. When I save the report and it shows the data again, there it shows the date correctly as 1-20-2019.

What am I missing? How can I make sure it shows the date correctly all the time and not as the long numeric field.

This topic has been closed for replies.

  • Quickbase Alumni
  • January 15, 2019
Dates are internally represented as the number of  milliseconds since that start of the Unix Epoch - midnight on January 1, 1970. This behavior is probably related to making the [Date] field the primary key. Choose another primary key and the behavior you observe will probably go away.

Forum|alt.badge.img+12
  • Quickbase Alumni
  • January 15, 2019
In January 2017 I reported this behavior as well:

Bug Behavior with Related Reference fields from a source table with a Date-field as the Key
When you have a table with a Key Field as a Date field; and build a relationship to a child table.

When you first create the child; your selections are normal (per your record picker). However; when you save the record without making a selection and then edit the record; the drop-down shows a nonsensical unknown value.

QuickBase response:
"Sorry to report, but you've run into a bug. 
QBE010296: Date Time as Reference results in incorrect values in child table "

I am pretty sure your issue is the same thing.

  • Author
  • Quickbase Alumni
  • January 15, 2019
As Dan mentioned it is probably the seconds from 1/1/1970. And by the way, it appears right after selecting the value from the dropdown. Once you save it and view it, the date appears correctly. I think the bug is where it shows the seconds from 1/1/1970. It should show the date all the time. That is the desired outcome. Otherwise, the users will complain and I will have to put QuickBase under the bus, (which I hate to do)