import module namespace dt = "http://www.zorba-xquery.com/modules/datetime"; dt:parse-date( "Fri 12/28/12", "%a %D", "en-US" ) (: Example configuration (taken from zorba testsuite): Result: /builddir/build/BUILD/zorba-2.8.0/test/rbkt/ExpQueryResults/zorba/datetime/datetime-parse-date-la-uD-1.xml.res Error: http://www.zorba-xquery.com/errors:ZOSE0007 --------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------- Expected output: 2012-12-28 :)