Forum Discussion

GeorgeBramhall2's avatar
GeorgeBramhall2
Qrew Cadet
5 years ago

Future Date Formula Help

I want to create at date that is X number of weeks after another date but if the date falls less than or equal to 3 day into any given month then the date should equal the last day of the prior month. What should this formula look like?

------------------------------
George Bramhall
------------------------------
    • GeorgeBramhall2's avatar
      GeorgeBramhall2
      Qrew Cadet
      Calendar Days, thanks

      ------------------------------
      George Bramhall
      ------------------------------
      • MarkShnier__You's avatar
        MarkShnier__You
        Icon for Qrew Legend rankQrew Legend
        Try this

        var RawDate = [Another date] + Weeks([X weeks as a numeric field]);

        IF(Day($RawDate)<=3, LastDayOfMonth(AdjustMonth($RawDate,-1)),$RawDate)

        ------------------------------
        Mark Shnier (YQC)
        Quick Base Solution Provider
        Your Quick Base Coach
        http://QuickBaseCoach.com
        mark.shnier@gmail.com
        ------------------------------