Jump to content

trouble with format-date() function


Recommended Posts



I'm brand new to XSL and I have a newbie question:


I'm trying to convert a value to a date. The format needs to be DD-MM-YYYY. I found this website that says I can use format-date(). But I get a compiler error: 'format-date() is an unknown XSLT function. Obviously, I need to import some library that contains the format-date() function, but I don't know how to do that.


This is probably important too. The line I have that calls format-date() is:


<xsl:value-of select="format-date(PCR/VW_PI_PATIENTCONTACTS[@PERSONTYPEID=3]/@DOBDATE, 'DD-MM-YYYY')"/>


Can anyone help me please?



Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...