question: public static LiteralImpl randomDate ( ) { StringBuilder sb = new StringBuilder ( ) ; Formatter formatter = new Formatter ( sb , Locale . US ) ; formatter . format ( "%04d-%02d-%02d" , randomIntBetween ( 1 , 9999 ) , randomIntBetween ( 1 , 12 ) , randomIntBetween ( 1 , 28 ) ) ; formatter . close ( ) ; return new LiteralImpl ( sb . toString ( ) , XMLSchema . DATE ) ; }
target:  Construct a random date literal.