Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Date Utilities In GW

How to use of Date and Calendar in GuideWire

Votes Newest


Do not use

new java.util.Date

(OR )

Instead use gw.api.util.DateUtil.CurrentDate (or)
var currentDate = new java.util.Date() (or)
var currentDate1 = java.util.Calendar.getInstance().Time
var currentDate = java.util.Date.CurrentDate // Note that “new” is not used here
var currentDate = gw.api.util.DateUtil.currentDate()

java.util.Date is a Java in-built class that implements the Comparable interface which is NOT thread safe. More importantly, java.util.Date returns the JVM date, while java.util.Date.CurrentDate returns the test system clock date. The use of java.util.Date can cause difficult to debug issues in accelerated (changing the system clock ) environments. If the code uses, java.utilDate, then It would be very difficult to properly test the functional and integration code because the date/time retrieved in the code (from the java.util.Date) would not reflect the test system clock that was advanced into the future from the current date.

Posted one year ago

Your answer