[XQZone General] convert date into marklogic date
Jason Hunter
jhunter at marklogic.com
Tue Jul 12 17:48:26 PDT 2005
Well you can't add time information if your string doesn't have it, but
you can convert a simple date string to a dateTime instance like this:
xs:dateTime(xs:date("2005-03-03"))
Result is basically:
xs:dateTime("2005-03-03T00:00:00")
There's xdmp:strftime() at
http://xqzone.marklogic.com/pubs/3.0/apidocs/Extension.html#strftime if
you want to do nice formatting of dates/times.
-jh-
Nizamuddin, Rashid wrote:
> I have a string "2005-03-03" I want to convert into marklogic date
> format like *2005-03-03T16:23:56.96-07:00*
>
> *Is there any function which does that*
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> General mailing list
> General at xqzone.marklogic.com
> http://xqzone.com/mailman/listinfo/general
More information about the General
mailing list