Let’s say we want to know how old each item we view in Data View is. As the version of XSL used in SharePoint is “1.0”, we don’t really have a wide scope of date functions. Actually we do have only “FormatDate” function, and even this one comes from a special (ddwrt) Microsoft namespace.
I assume here that you worked with SharePoint Designer 2007 and Data Views before.
<td class="ms-vb"> <xsl:value-of select="ddwrt:FormatDate(string(@Modified), 1033, 5)" /> </td>
PS: I did not add any screen shots here assuming that it is fairly easy, but if you need some, just leave some comments.