Skip to content
Snippets Groups Projects
Commit 26a193bd authored by christian's avatar christian
Browse files

add hyphen to gYearMonth with days-from-month

parent 779cfbd7
No related branches found
No related tags found
No related merge requests found
...@@ -49,7 +49,7 @@ declare %private function date:getCastableDate($date as xs:string, $latest as xs ...@@ -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')) if($latest) then xs:date(concat($date,'-12-31'))
else xs:date(concat($date,'-01-01')) else xs:date(concat($date,'-01-01'))
else if($date castable as xs:gYearMonth) then 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 xs:date(concat($date,'-01'))
else() else()
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment