PricingDocsAcademy
Bluesky ...
Wed, Dec 11, 10:27 PM

Date functions

  • Iamasuperuser

    17 days ago

    Hi! I've discovered the NOW formula to get todays date. But is it possible to say something like "Now minus 7 days"?
    The AI bot says to use the AddDays -7 function, but that seems to be a hallucination, as AddDays doesn't exist. Neither does Offset or any other date manipulation formula. Would anyone know how I can add and remove dates from a date in order to show that variable in a Date Input field.
    Thanks
  • /attachments/1310225560378802248/1310228814504132699/image.png

    needtheanswers

    17 days ago

    Lol I had the same issue a few days ago and got confused as well by the "AddDays" response of the AI bot. I figured it out and you need to do it like this:
    image.png
  • Maybe there is a better way to do it but this works
  • Iamasuperuser

    17 days ago

    Oh you gem! Many thanks indeed @needtheanswers !
  • needtheanswers

    17 days ago

    mind that I wanted to get yesterdays date in the screenshot so in your case it would be 86400000*7. Just calculate the ms
    πŸ”₯1
  • needtheanswers

    17 days ago

    you are welcome πŸ™‚
  • /attachments/1310225560378802248/1310231442005033061/image.png

    Iamasuperuser

    17 days ago

    and that worked. Thanks so much. Very much appreciated.
    image.png
  • needtheanswers

    17 days ago

    Happy to hear that! Glad I could help πŸ‘

Stop scrolling. Start building.

toddle is a visual web app builder that rivals custom code β€” but accessible to your entire team!

Try toddle β€” it's free!

Β© Copyright 2024 toddle. All rights reserved.