215 Posts
cubist
9 years ago
1
Topic

On my site ...

A date and time is set as e.g. "2014-07-03 00:00:00". I have tried format as on Y:m:d but the dB adds "00:00:00" anyways.

We include this field in an email and want to strip off the zeros.

Can someone get me started on how I would go about editing a field before emailing it?

Is this code BeforeRender or code BeforeStore?

And should I call and manipulate my field? 

Any samples you can provide are most appreciated. Thx!

Get a VIP membership
693 Posts
rpoy
9 years ago
0
Level 1

Hi cubist,

Are you sending your form immediately on submission?  What is your date/time field for?

The BeforeRender or BeforeStore will not have an effect on the email field, but you can send a date using this format:

[date(format)] where format is the standard PHP date format.  Here is an example.

Otherwise, it sounds similar to this issue in the Tracker.  If that is the case, feel free to add your support.

thanks,

Randy

Get a VIP membership