[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] date widget format data
> > > What I get in the data table is just the number for the
> month that was
> > > selected. The field is set to varchar(255).
> > >
> > > Another problem is I'd like to be able to have my date value
> > > formatted as
> > > YYYY-MM-DD.
> > >
> > > So, two questions:
> > >
> > > 1. How can I get a date widget value to store to the DB
> with the full
> > > string instead of just the first part?
> > > 2. How can I get the date widget to format the value to
> YYYY-MM-DD?
> > >
> > > Thanks,
> > >
> > > Russell
> >
> > Hi Russell,
> >
> > I didn't even know about the [widget] tag... I will have to
> look into
> > that. You can also use the [display] tag, and set the
> fields widget type
> > in the table editors metadata. This works for me.
> >
> > [display table=gift_memberships column=datetosend key=""]
> >
> > then setup the date widget with the "date selector" filter in Admin.
> >
> > Paul
>
> I'm not using this date widget in the admin, I'm using it for
> the customer.
>
> -Russell
I realize that. But I take it that "datetosend" is a column in a Mysql
table yes? You set the metadata in ADMIN, but use it one the front
end.... like a mini table editor... but not :)
Paul