You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

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:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!