For the sake of completeness, there is also xdmp:dayname-from-date, but I
like the suggestion from Florent better.
Note though:
"Dates before October 15, 1582 (the start of the Gregorian calendar)
will
not return the correct date value."
(see http://docs.marklogic.com/fn:format-date)
I suspect most implementations will have a similar limitation..
Cheers,
Geert
On 10/14/16, 10:10 AM, "[email protected] on behalf
of Florent Georges" <[email protected] on behalf of
[email protected]> wrote:
>You can use format-date():
>
>format-date(current-date(), '[F]') = ('saturday', 'sunday')
>
>Regards,
>
>--
>Florent Georges
>http://fgeorges.org/
>http://h2oconsulting.be/
>
>
>On 14 October 2016 at 09:56, Debin, Infant Jerald (LNG-CON) wrote:
>> Hi All,
>>
>>
>>
>> Is there any way to identify particular date falls in Saturday or Sunday
>> using xquery
>>
>>
>>
>> Thanks,
>>
>> Debin
>>
>>
>> _______________________________________________
>> General mailing list
>> [email protected]
>> Manage your subscription at:
>> http://developer.marklogic.com/mailman/listinfo/general
>>
>_______________________________________________
>General mailing list
>[email protected]
>Manage your subscription at:
>http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general