Hi Alexandre,
Unfortunately ex:formats only works on views, <body>, and on tabular
view columns right now, not in lens templates. I will have to implement
that.
Besides, new Date(...) does not take ISO 8601 dates. If you want ISO
8601, then try either putting in the strings directly (without wrapping
them with new Date(...)), or call
SimileAjax.DateTime.parseIso8601DateTime(...)
David
Alexandre Passant wrote:
> Hi,
>
> I'm trying to setup dates format using Exhibit 2.0, but can't make it
> work.
>
> I've included ex:formats="date { mode: medium; show: date } in my
> lens, and updated JSON file to use "date" : new Date("datestring") -
> instead of "date": "datestring", but got a message "Invalide Date"
> when rendering date in the exhibit with a simple <span
> ex:content=".date">.
> datestring uses complete ISO8601 format
>
> Thanks for any help,
>
> Alex.
> ------------------------------------------------------------------------
>
> _______________________________________________
> General mailing list
> [email protected]
> http://simile.mit.edu/mailman/listinfo/general
>
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general