Removing Timestamp from Date
I'm trying to subtract two different dates but noticed I'm getting invalid data because of the timestamp. Is there a way to remove the timestamp so I can find the number of days between two dates?
Thanks!
-
oh.. I see. What you are looking at id the difference in miliseconds. In other words, substracting two timestamps or dates by default will produce the result in miliseconds. So to convert it to days you want to divide it by "1d". So the formula will look like #yourresult/1d.. You can type this formula directly in the formula bar. You can also do #yourresult/1m to see in minutes and so on. Let me know if this makes sense. More than happy to provide a screenshot
-
Hi Ishfaq,
If the values are blank, you can create a new column using the IF function to remove the blank values.
If the values are null, you can use the DENULLIFY function to remove the nulls.
Let me know if you have any questions!
Please sign in to leave a comment.
Comments
7 comments