2 Replies Latest reply on Oct 7, 2015 10:40 PM by clayhendrix

    Script to calculate date of last Sunday

    clayhendrix

      I need to create a button that will put the date of last Sunday in a field. For this application, most events occur on a Sunday, however, they are entered on a day later in the week. So, I'd like to make a script to be triggered by a button to put the date of last Sunday in a field.

       

      For example, if you ran the script today (Thursday, 10/8/2015) it would put 10/4/2015 in the field.

       

      Thanks, in advance.

       

      Please help, if you can.