ZK How to set the date time format

To set the desired display format for a date in a ZK label, or in other controls, is it possible to use the @converter directive and set the built-in converter formateDate

Here an example:

	<label value="@load(vm.mydatevalue) @converter('formatedDate', format='dd-MMM-yyyy')" ></label>;

Tested with ZK version 6 and 7.

More information in the official documentation:
See the paragraph “Use Built-in Converter”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s