Thursday, 15 August 2024

Xpath Code Snippets

 Convert UTC date time to local date time

fn:adjust-dateTime-to-timezone(xs:dateTime($value), xs:dayTimeDuration('PT2H'))

PT2H means UTC+2

 Remove leading zeroes

fn:replace(0000005789,'^0+','')

No comments:

Post a Comment