Leap Year logic in BML
Summary:
Based on start date, need to set end date by checking if the end date is falling in a leap year.
Content (required):
Script to auto populate end date based on start date with leap year logic in place.
Version (include the version you are using, if applicable):
Code Snippet (add any code snippets that support your topic, if applicable):
startDate= strtodate(StartDate, "yyyy-MM-dd HH:mm:ss");
endDate = adddays(startDate, 364);
return endDate;
Tagged:
0