You need to sign in to do that
Don't have an account?
jedi_101
how to get a datetime input?
I am a newbie giving this a test drive...
i am writing a small app that pulls leads created between two input dates
so i need to prompt the user for a begin date and an end date and pull the number of leads created between those dates.
how do i do this? inputField doesn't seem to be the answer...inputText doesn't prompt with a calendar widget..please don't tell me i need to write my own javascript to show a calendar!
i am writing a small app that pulls leads created between two input dates
so i need to prompt the user for a begin date and an end date and pull the number of leads created between those dates.
how do i do this? inputField doesn't seem to be the answer...inputText doesn't prompt with a calendar widget..please don't tell me i need to write my own javascript to show a calendar!
Don't be afraid, however, you need not write your own you just need to establish a record with a date input value on it.
The easiest thing to do is probably to leverage the Task or Event sobjects depending on whether you need a date or datetime.
Let's say you use task. In your controller you would do something like this...