[Erlangweb-users] Displaying dates
Brought to you by:
etcerlangweb,
paulgray
|
From: Graeme D. <gra...@gm...> - 2010-03-20 03:38:04
|
Hi,
I am sure everyone else is displaying dates fine, so it must be me,
but I have tried all the combinations i can think of.
The data in my database looks good (as io:format-ed after reading) but
displays as an integer.
My _types record contains this:
dob = {date,[{format, "YYYY-MM-DD"},
{description, "Date of Birth"}]}
and my html looks thusly:
<p>date of birth: <wpart:lookup key="player:dob" format="date" /></p>
but the display is just a number :
date of birth: 61661174400
i.e. the date in seconds.
What am i doing wrong?
Thanks,
graeme
|