Method Community

 

Fixed or default Date

Last post 02-28-2011 10:39 AM by Method_Michael. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 02-26-2011 4:50 PM

    Fixed or default Date

    I would like to have a due date display in the contacts portal home screen and transactions screen. I would like the date to be the 15 of the current month.

    Example: If we are in the current month of March, I would like the screen to display the due date as March 15, 2011 or if it's July, the due date should show July 15, 2011 and so on.

    What are the actions that need to be called in order to have this work?

     

    Thanks

     

  • 02-28-2011 10:39 AM In reply to

    Re: Fixed or default Date

    Hi matlow99,

    Is this due date going to be displayed based on each transaction or just a general due date? Either way the steps outlined below should give you the 15th of the month in any situation Big Smile.

    • Get the current date from the session( Or date from any date field)
    • Use the Date Function action to get the first of the month from that date
    • Use the Date Add action to add 14 days to that date

    This should give you the 15th of the month and then you can use that date for the Due Date.

    -Michael

     

     

    Michael Melo
    Product Manager
    Method Integration Inc.
    Website: http://www.method.me
    LinkedIn: http://www.linkedin.com/in/MichaelMelo
Page 1 of 1 (2 items)