i2-Services, Inc. Forums

Full Version: Date Field
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I can't tell from the demo how to add the following:
Current Date/Time (from system date/time)
Date/Time (user selectable)

Please advise
Russell Cox

russellmcox Wrote:
I can't tell from the demo how to add the following:
Current Date/Time (from system date/time)
Date/Time (user selectable)


Date can be called via the %date% variable reference.

On the user select date option you could create separate fields
asking for month, day & year.

i2-Services, Inc. Wrote:

russellmcox Wrote:
I can't tell from the demo how to add the following:
Current Date/Time (from system date/time)
Date/Time (user selectable)


Date can be called via the %date% variable reference.

On the user select date option you could create separate fields
asking for month, day & year.


Sorry to open an old question but I have an additional question related to this - is there a way to only require mm/yyyy instead of the mm/dd/yyyy in the format drop down box?

gilman01 Wrote:
Sorry to open an old question but I have an additional question related to this - is there a way to only require mm/yyyy instead of the mm/dd/yyyy in the format drop down box?



Not currently. Will look to add this in. You could create a text field for date and have the default text show MM/YYYY.

No validation but should do until we get it added in for you?

Thanks - that should work - looking forward to the changes.
One little trick that I learnt here was, that Smarty Templates don't use the standard PHP Date format. Here's the link to the page with the correct formats:

Smarty Manual

Hope it helps someone like it helped me.
Is there a way to have DD/MM/YYYY and not the standard value MM/DD/YYYY. (not as text-field, but also possible to check if correct)
You should be able to get that using the date format via the smarty link above.

I will need to put a check for the DD/MM/YYYY format in the next release.
Reference URL's