Skip to content

To find number of days #227

Answered by fbaligand
Niyanthan asked this question in Q&A
Aug 25, 2021 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Well, first, you can get current time with now() function in a computed column formula.
All available functions are documented here: https://github.com/fbaligand/kibana-enhanced-table#available-functions
Is your column 1, a "date" column, I mean a column where the value is really a date object, not a string containing a date? It is required to compute date difference.
Then, you don't need to create an intermediate column with "now".
Given that col1 is really a date object (and so column value is at Epoch format in milliseconds), you can use this formula to compute difference from now in milliseconds: now() - col1.
And if you want the difference in days, you can use this formula: (now() - …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Niyanthan
Comment options

@fbaligand
Comment options

Answer selected by fbaligand
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants