From 26a193bd22791129c9984accfd1eeabbc7674a55 Mon Sep 17 00:00:00 2001 From: christian <christian@UX305> Date: Tue, 20 Feb 2018 19:15:44 +0100 Subject: [PATCH] add hyphen to gYearMonth with days-from-month --- xquery/date.xqm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xquery/date.xqm b/xquery/date.xqm index 5247157..25e3f6f 100755 --- a/xquery/date.xqm +++ b/xquery/date.xqm @@ -49,7 +49,7 @@ declare %private function date:getCastableDate($date as xs:string, $latest as xs if($latest) then xs:date(concat($date,'-12-31')) else xs:date(concat($date,'-01-01')) else if($date castable as xs:gYearMonth) then - if($latest) then xs:date(concat($date, functx:days-in-month(xs:date(concat($date,'-01'))))) + if($latest) then xs:date(concat($date, '-', functx:days-in-month(xs:date(concat($date,'-01'))))) else xs:date(concat($date,'-01')) else() }; -- GitLab