I am having a field in my listField that is a Datetime fuield, the code is looking as follow:
[UIOMaticListViewField(Name = "Datum", Config = ""), UIOMaticField(Name = "Begintime", Description = "Enter the start date/time of the event", View = "datetime")]
public DateTime Begintime { get; set; }
Now it outputs something like this in the listView:
2016-11-08T16:00:00Z
How to make it possible so it outputs something like 8 October 2016? I know I have to do something with the Config variable but I can not find out what...
UIOMaticListViewField Configuration
Hi,
I am having a field in my listField that is a Datetime fuield, the code is looking as follow:
Now it outputs something like this in the listView:
How to make it possible so it outputs something like 8 October 2016? I know I have to do something with the Config variable but I can not find out what...
Kind regards, Yanick
Comment author was deleted
Hi Yanick , yes you can use any AngularJS filter to format the date
http://www.nibble.be/?p=525
So in your case you need the date filter
https://docs.angularjs.org/api/ng/filter/date
Comment author was deleted
Some docs on the feature http://uiomatic.readthedocs.io/en/stable/05.ListFieldViews/#label
In case anyone else bumps up against this one...
use of existing angular date formats is a qouted/string delimiter quagmire.. eventually found the right combination.
Comment author was deleted
Yeah can be a bit tricky, thanks for sharing :)
is working on a reply...