You can create a Java service that is used for XSD DateTime, Date, or Time comparisons.
See http://www.sybase.com/developer/codexchange for to access the needed Java file and readme to complete this task.
Send your feedback on this help topic to Sybase Tech Pubs: pubs@sybase.com