Peter; I thing it's a matter of making sure a xsd:string is passed to afn:substr(), instead of the xsd:dateTime that sfn:now() returns. I.e.: afn:substr(xsd:string(afn:now()), 0, 10)
-- Scott On Nov 29, 6:20 am, peter <[email protected]> wrote: > Really quick, possibly silly, question. > > I have a ui:instanceView of > <div class="datestamp">{= afn:now() }</div> > which works fine - I use this to populate document footers in > documents (via PrinceXML). > When I try to get only the yyyy-mm-dd part by > <div class="datestamp">{= afn:substr(afn:now(), 0, 10) }</div> > I get an empty div. I have also tried fn:substring, and tried sparql > LET, to no avail. > I am using TBC-ME Version: 3.4.0.v20101022-1145B > > Peter -- You received this message because you are subscribed to the Google Group "TopBraid Suite Users", the topics of which include TopBraid Composer, TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/topbraid-users?hl=en
