Minor issue: format-date?

Friday, 20 January 2023 · 3 messages
AW
Alexander Witzigmann20 Jan 2023 11:44 #

Hi,

The format-date has one minor issue using

format-date(xs:date("2022-01-01"),"[D]. [Mn] [Y]","de",(),())

should return 1. Januar 2022 but currently (BaseX 10.4) returns 1. januar 2022

alex

MH
Martin Honnen20 Jan 2023 12:06 #
Quoted text · Alexander Witzigmann · 13 lines
Am 1/20/2023 um 11:44 AM schrieb Alexander Witzigmann: > Hi, > > The format-date has one minor issue using > > format-date(xs:date("2022-01-01"),"[D]. [Mn] [Y]","de",(),()) > > should return > 1. Januar 2022 > but currently (BaseX 10.4) returns > 1. januar 2022 > >

I think you need/want to use

    format-date(xs:date("2022-01-01"),"[D]. [MNn] [Y]","de",(),())

Your sample gives the same output for me with BaseX and Saxon.

AW
Alexander Witzigmann20 Jan 2023 17:07 #

hi martin,

yep - as often - PEBKAC thanks alex

Quoted text · Martin Honnen · 23 lines
Am 20.01.2023 um 12:06 schrieb Martin Honnen: > > > > Am 1/20/2023 um 11:44 AM schrieb Alexander Witzigmann: >> Hi, >> >> The format-date has one minor issue using >> >> format-date(xs:date("2022-01-01"),"[D]. [Mn] [Y]","de",(),()) >> >> should return >> 1. Januar 2022 >> but currently (BaseX 10.4) returns >> 1. januar 2022 >> >> > I think you need/want to use > > format-date(xs:date("2022-01-01"),"[D]. [MNn] [Y]","de",(),()) > > Your sample gives the same output for me with BaseX and Saxon. >

⚡Generated with XQuery