Spreadsheet date math

calcs workbook · Friday Demos · January 26, 2024 · 3:00

Date math! Dealing with time math in the database is brutal. For of the pain with numeric dates in Excel, they are trivial to work with - easy addition and subtraction, they just work. Now…

Transcript

This transcript is auto-generated. Names and product terms may be wrong.

  1. all right I can do a quick demo it'll be quick uh um see that uh so we added the ability to like do basic Excel style date math so um if you add one to a date you get the next day um and then and we've made it so that um if it's like a month and you add a day to it like you're you're still seeing a month but under the hood it's actually 1202 uh or 120 yeah 1202 no Jesus I don't math is confusing oh yeah this is the first of the month so then you add one is 1202 um so yeah you can use this with raw fields or any of the like Omni date functions to like add whatever some

  2. number of days to a date um and then there's like this is just a fix which is like it had been that we were for comparisons using the underlying raw value of the field which doesn't necessarily match up with what is displayed here um so like under the hood this is actually 2017 1201 um so you would have had to use that here in order for the equality work um but now you can use the thing that you see here to test the quality and then you see that that works um these things are out and then one thing that's I'm wrapping up now which we can hopefully get out soon is being able to use dates in functions that require numbers um so you're

  3. basically just um taking the numeric value of this which is like I'm just doing the epoch right now um and so then you can do things like this which is like take the slope of like this column is the input and that and then get you know some number out this is amazing I just can't emphasize enough how much like doing this really hard kind of crazy is stuff is huge for users um like I continue to be blown away at how much people are just picking up completely normal spreadsheet behavor avior and just bringing it into the app and every single time we buff out one of these little things so that like you can compare to a month as the day or the

  4. month or whatever and it's just all logical and work like it's it's amazing the stuff that people are doing with this it's like and and these things are what really makes it work so it's awesome