Monday, November 05, 2012

How to change the date format and get previous date in OSB

fn-bea:date-to-string-with-format("dd-MM-yyyy",fn:current-date())

fn:concat(fn:day-from-dateTime(fn:current-dateTime() - xdt:dayTimeDuration("PT24H")),'-',fn:month-from-dateTime(fn:current-dateTime()),'-',fn:year-from-dateTime(fn:current-dateTime()))

This decreases 24 hour from the existing date

xdt:dayTimeDuration("PT24H")

No comments: