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, "general-boun...@developer.marklogic.com on behalf
of Florent Georges" <general-boun...@developer.marklogic.com on behalf of
li...@fgeorges.org> 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
>> General@developer.marklogic.com
>> Manage your subscription at:
>> http://developer.marklogic.com/mailman/listinfo/general
>>
>_______________________________________________
>General mailing list
>General@developer.marklogic.com
>Manage your subscription at:
>http://developer.marklogic.com/mailman/listinfo/general

_______________________________________________
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to