Broker 10.5 | webMethods Broker Documentation | webMethods Broker Client Java API Programmer's Guide | Using BrokerDate Objects | BrokerDate Methods
 
BrokerDate Methods
When you construct a new BrokerDate object and specify a date and time, the is_date_and_time member is set to true. If you construct an empty BrokerDate, the is_date_and_time member is set to false by default.
Other BrokerDate methods include:
Method
Description
clear
Clears the entire contents of this BrokerDate.
clearTime
Clears only the hour, minute, second, and millisecond.
compareTo
Determines if one BrokerDate greater than, equal to, or less than another BrokerDate.
equals
Determines if one BrokerDate is equal to another.
getJavaCalendar
Converts a BrokerDate to a Java Calendar object.
getJavaDate
Converts a BrokerDate to a Java Date object.
parseDate
Creates a BrokerDate and sets it to the date and time contained in the specified String.
parseLocalizedDate
Creates a BrokerDate and sets it to the date and time contained in the specified String.
setDate
Sets the year, month, and day. Year must be < 4096.
setDateTime
Sets the date and time.
setJavaCalendar
Sets a BrokerDate from a Java Calendar object.
setJavaDate
Sets a BrokerDate from a Java Date object.
setTime
Set only the hour, minute, second, and millisecond.
toLocalizedString
Returns a string representation of a BrokerDate, using a specified Locale.
toString
Returns a string representation of a BrokerDate using the java.util.Locale.US.