[XQZone General] convert date into marklogic date
jhunter at marklogic.com
Wed Jul 13 12:02:47 PDT 2005
Well here's one way to write it:
for $i in //date-time
Depending on the size of your data this could get slow. You can use the
admin screens to add a "range index" for the <data-time> element,
assigning the type of xs:dateTime to the range index, and then you'll
get fast less than and greater than operations which can be used to trim
down the data before doing the max.
Note that because of how the dateTimes are serialized, max() of the
string values does solve the problem there so long as the time zones are
Nizamuddin, Rashid wrote:
> I got a new problem now
> I have the dates entered into my xml document as
> These are in string format. I need to get the max of the date among the
> I don't think so the max function works here since both of them are
> stored a strings. Is there a way I can convert this into date and then
> run the max function?
> Any help...
> General mailing list
> General at xqzone.marklogic.com
More information about the General