+ Start a Discussion

Date Field without object


I'm attempting to place to date fields (for input - with the calendar control) on a visualforce page. these are not attached to any object.

since InputField can only be used togather with an Object, I had to artificially use an object' date field. even though I'm not concerned with that object in this context.


Ideally, the input field would simply be tied to a date variable.


any ideas?




It sounds like you already are doing this, but I have used a different Object and bind a date field from that object to the InputField. For example, the Opportunity CloseDate field - even though my solution has nothing to do with the Opportunity object. That way you can use the calendar control in the Page, and have access to that entered value in your controller.