« Return to Thread: Is there a better way? Getting earliest date

Re: Is there a better way? Getting earliest date

by PencilEd :: Rate this Message:

Reply to Author | View in Thread

Thanks, Adam.

That helped, but I guess I was hoping for something more like a min() for dates... like this:

let $min_date := min(collection($collection)/Dates/Date/value)

or, better... something more like:

let $min_date := collection($collection)/Dates/Date/value/[. = min(.)]

 « Return to Thread: Is there a better way? Getting earliest date