Date Field Values

4 posts by 3 authors in: Forums > CMS Builder
Last Post: March 25, 2010   (RSS)

By gkornbluth - March 19, 2010

Hi All,

I’ve got a couple of questions regarding date fields.

1) Is there a way to not require the time values to be filled in for a date field where “user specifies time” is checked? I have a situation where sometimes the time is necessary but sometimes it’s not, and at present, if a date field is filled in, the time value is not optional.

2) Is there a way to make the value for the “year” in a date field default to the current year. That way there would be one less pull down menu value that always needs be filled in?

Thanks as always,

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!

Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [gkornbluth] Date Field Values

By Chris - March 19, 2010

Hi Jerry,

There's currently no way to make the time components of a date field optional if the date field is "user specifies time". I wonder if you could get away with defaulting to 12:00:00 AM or some such "meaningless" time?

You can accomplish quite a lot of interesting date/time defaults by using the Default Value = "Specify custom date" option. Try this:

now 00:00:00

An alternative might be to uncheck "user specifies time" and use a separate "text" field for the time.

I hope this helps. Please let me know if you have any questions.
All the best,
Chris

Re: [chris] Date Field Values

By gkornbluth - March 20, 2010

Thanks Chris,

I'll give it a try

They would be nice options though.

Jerry
The first CMS Builder reference book is now available on-line!

Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php