Date functions

  • iamasuperuser-1310225560378802248

    Iamasuperuser

    4 months 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
  • needtheanswers-1310228815037075518

    needtheanswers

    4 months 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:
    1310228814504132699-image.png
  • Maybe there is a better way to do it but this works
  • iamasuperuser-1310228967071940629

    Iamasuperuser

    4 months ago

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

    needtheanswers

    4 months 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-1310229405695479838

    needtheanswers

    4 months ago

    you are welcome πŸ™‚
  • iamasuperuser-1310231442210422840

    Iamasuperuser

    4 months ago

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

    needtheanswers

    4 months 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.