Time & Date Vs Date

Hi,

I have an archetype with the following expression:

concat('Medical Questionnaire: ', date:formatDate(/activityStartTime))

but this gives me the date only.

is it possible to modify the above expression to get a date AND time?

Alternatively - can someone point me how I could get this information.

Thanks,

Adrian

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Re: Time & Date Vs Date

You could use:

     date:formatDateTime(/activityStartTime, 'MEDIUM')

In 1.9, there is also the date:format() function e.g.

     date:format(/activityStartTime, 'dd/MM/yy HH:mm')

See Date Functions for more details.

Re: Time & Date Vs Date

Perfect. thanks

Syndicate content