Hi!
I tried to look for this here on the forum and on stack overflow, but I could not find anything that would work with redash.
I am trying to query using redash parameters for date and time. My database has a timestamp parameter that is in epoch. How do I convert the date and time parameter to epoch time?
Example of a document from the db:
{
firstName: “Stacy”,
lastName: “Smith”,
dateCreated: {seconds:1631930899059}
}
I can query with dateCreated.seconds : {
“$gt”:50000
}
But once I replace that 5000 with a parameter, it obviously doesn’t work.