Skip to end of metadata
Go to start of metadata

Description

In Design 32 there is a data source called Date/Time and as part of the Date/Time field you can use the option "Calculate Expiration Date". Does this Calculate Expiration Date take into affect Leap years?

How to Set-up and Use Date/Time and Calculate Expiration Date 

Setting up the Date/Time data source (Note: The Date/Time data source uses the server date and time.):

  1. Open Design 32.
  2. Open the label where you want to add an expiration date.
  3. If the expiration date field needs to be added to your label, then add the field by using the variable label icon (  ), add the new field and then double click the field. Or if the expiration date field already exist then double click the field and open the data source box.



  4. Select the Date/Time Data Source.
  5. In the Format section, select the correct format for the expiration.
  6. In the area Calculate Expiration Date, put the number of days (x) you want your product to expire.
  7. Click OK.



  8. When you click OK you will notice your expiration date is now showing the date x numbers of from today. (x = number you entered in Add days to value box)

Sample: If your day is March 30, 2015 and you put 365 days in the add  days to value box, your expiration date will equal March 29, 2016, Since 2016 is a leap year in order to have a full one year expiration date it would have to be 366 days.

Yes, this calculation does take Leap year into consideration.



 

 

Article Number

2015052

Versions

All LPS Versions

Environment

All supported installation environments