You need to sign in to do that
Don't have an account?
kito kid
Datetime picker value format change after submit the form
I am using JS like below,
function DynamicDatePicker(d_id)
{
DatePicker.pickDate(false,d_id.id,false);
}
<apex:inputText id="startDate" value="{!startDate}" onfocus="DynamicDatePicker(this);"
size="20" disabled="false" style="width:80px;"/>
At inital , when user select from picker, value displays as 04/07/2013 (DD/MM/YYYY).
But after user submits the form, the value from the picker changes as [Thu Jul 04 00:00:00 GMT 2013].
How I can force the date time picker only displayed as DD/MM/YYYY ?
Well try this
I answered the same here http://boards.developerforce.com/t5/Visualforce-Development/DatePicker-format-changes-when-VF-page-refreshed/m-p/650577#M66851
All Answers
Well try this
I answered the same here http://boards.developerforce.com/t5/Visualforce-Development/DatePicker-format-changes-when-VF-page-refreshed/m-p/650577#M66851
I tried to follow ur code, I am facing one problem.
After the form is submitted , the date become null .
Any hint?
Hi Avidev9,
my mistake, I was using the different variable name. Thanks again.