You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 10, 2022. It is now read-only.
isubiker edited this page Aug 17, 2011
·
3 revisions
Date Parser Module
Import statement
import module namespace dateparser="http://marklogic.com/dateparser" at "lib/date-parser.xqy";
API Functions
dateparser:parse
dateparser:parse(
$date as xs:string
) as xs:dateTime?
Parses a string in various formats into an xs:dateTime. The following formats are supported:
Thu Jul 07 2011 11:05:42 GMT-0700 (PDT)
25-Oct-2004 17:06:46 -0500
Mon, 23 Sep 0102 23:14:26 +0900
30 Jun 2006 09:39:08 -050
Apr 16 13:49:06 2003 +0200
Aug 04 11:44:58 EDT 2003
4 Jan 98 0:41 EDT
08-20-2007
2007/08/20
08/20/2007
2007092
December 20th, 2005
When it comes to month names, both long and abbreviated month names are supported. Along with english month names, spanish, french, german and italian are also supported.