startTime v openvpms:get(.,"startTime")
Submitted by Ben_Charlton on Tue, 22/02/2022 - 17:49
I am just wondering why
if I do
date:format(startTime,"dd/MM/yyyy")
it doesnt work...
but
date:format(openvpms:get(."startTime"),"dd/MM/yyyy")
does
I thought both returned a dateTime object?
Re: startTime v openvpms:get(.,"startTime")
The former expression won't work as startTime is not known to the xpath expression.
The second expression returns the value of the "startTime" node from the current object, identified by the period. There should be a comma after the period i.e.: