Designing and Implementing Business Process Models 10.5 | Designing and Implementing Business Process Models | Business Rules Reference | Functions | Summary of Date Functions
 
Summary of Date Functions
 
int century()
int compareDates(Date date1, Date date2)
Date date()
Date dateMinusDays(int days)
Date datePlusDays(int days)
long dateToInt()
int dayOfMonth()
int dayOfWeek()
int dayOfYear()
int daysInMonth(int month, int year)
long diffInDays(Date anotherDate)
long diffInMonths(Date anotherDate)
long diffInYears(Date anotherDate)
Date intToDate(long millis)
isLeapYear(int year)
int month()
String time()
boolean verifyDate(int year, int month, int day)
boolean verifyIntDate(long millis)
boolean verifyMonth(int month)
boolean verifyYear(int year)
int year()
Date ymdToDate(int year, int month, int day)
webMethods Rules Development provides predefined date functions as listed in the following table:
Note: Dates are based on the ISO 8601 standard which is based on the proleptic Gregorian calendar.
Function
Returns
Description
Integer
Returns the century for this date.
Integer
Compares one date against another date.
Date
Returns the current date from the server where the decision entity is invoked.
Date
Returns a copy of this date minus the specified number of days.
Date
Returns a copy of this date plus the specified number of days.
Integer
Returns the number of milliseconds since the standard base time.
Integer
Returns the day of the month for this date.
Integer
Returns the day of the week for this date.
Integer
Returns the day of the year for this date.
Integer
Returns the number of days in the specified month in the given year.
Integer
Returns the mathematical difference in days between this date and the specified date ignoring the times of both dates.
Integer
Returns the mathematical difference in months between this date and the specified date ignoring the times of both dates.
Integer
Returns the mathematical difference in years between this date and the specified date ignoring the times of both dates.
Date
Returns a date that represents the specified number of milliseconds since the standard base time.
Boolean
Indicates whether or not the specified year is a leap year.
Integer
Returns the numeric month for this date.
String
Returns the string representation of the time this date as Hours:Minutes:Seconds.Milliseconds.
Boolean
Verifies that the date represented by the specified year, month and day is valid.
Boolean
Verifies that the specified number of milliseconds is a valid date representation.
Boolean
Verifies that the specified numeric month is valid.
Boolean
Verifies that the specified numeric year is valid.
Integer
Returns the numeric 4-digit year for this date.
Date
Creates and returns a date from three integers (year, month, day).

Copyright © 2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.