XsltDb Formatting Overview

XsltDb uses formatting as it goes in String.Format .NET method. So if you familiar with .NET formatting you would easily use XsltDb formatting. XsltDb provides two different method for dates and numbers to avoid ambiguity.

mdo:fmt-date(date, format)

Example

  • mdo:fmt-date($date, 'd') - short date form
  • mdo:fmt-date($date, 'dd.MM.yyyy') - custom date format

mdo:fmt-number(num, format)

Example

  • mdo:fmt-number($num, 'C') - monetary format
  • mdo:fmt-number($num, '00.0000') - custom decimal format

Last edited Aug 4, 2010 at 1:42 PM by findy, version 8

Comments

No comments yet.