Extension, Fieldtype, Module

Archived
Forum
(read-only)

Zoo Visitor

ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From Discontinued

     

Date Field Format Issue

General

TheoWirebox
TheoWirebox

Hi I have edited your profile template to include a date field called {member_birthday} . This is all outptuing great until I add the format attribute to the tag then the date all ways outputs 01/01/1970.

{exp:zoo_visitor:update_form return="members/profile/success" error_handling="inline" rules:member_home_tel="numeric" rules:member_mobile="numeric"}
    {member_birthday}
{
/exp:zoo_visitor:update_form} 

outputs 1982-11-08 12:00 AM

{exp:zoo_visitor:update_form return="members/profile/success" error_handling="inline" rules:member_home_tel="numeric" rules:member_mobile="numeric"}
    {member_birthday format
="%d/%m/%Y"}
{
/exp:zoo_visitor:update_form} 

outputs 01/01/1970

ExpressionEngine Zoo
# 1
ExpressionEngine Zoo

That won’t work in a regular Safecracker form either, try looking for a date formatting add-on, that will probably solve it

TheoWirebox
# 2
TheoWirebox

Thanks that’s fixed it I installed this plugin for reference http://devot-ee.com/add-ons/nice-date