Forums

Date field to show Date only.

hooi 24 Apr, 2011
Hi,

I'd like to know whether it's possible to show the date entered as displayed in the email received as just the Date only, i don't want to see the Time. Eg. when the user enters a Birth Date, the time is irrelevant.

Thanks.

Best regards,
Hooi
GreyHead 25 Apr, 2011
Hi Hooi,

I think that only the date is shown if you use the default settings? The time should only display if you have the time-picker options enabled.

Bob
hooi 01 May, 2011
Hi Bob,

During the date selection, it's true that it shows only the date, however when the form sends an email out, it shows the date together with the time in the email. What should i do so that the time is not added to the email?

Thanks.

Best regards,
Hooi
GreyHead 02 May, 2011
Hi Hooi,

I think that you need to set the inputOutputFormat parameter. You should be able to set this in the "DateTime Picker selector" box on the Form General tab using code like
datetime1::{inputOutputFormat: 'm-d-Y'}
but there are some serious bugs in the DateTime picker in CFv4 when you try to change settings. See this post for more info.

Bob
Max_admin 10 May, 2011
Hi,

I found some issues with the date/time formatting in RC1.8, fixes have been made, to come in RC1.9🙂

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
hooi 10 May, 2011
Thank you Bob and Max for your help, appreciate it very much and look forward to RC1.9! 🙂
This topic is locked and no more replies can be posted.