You need to sign in to do that
Don't have an account?

Invalid Date Error in Visualforce Page
Hi,
I'm getting an Invalid Date Error in a VF Page emanating from the following code :
Date stDate = Date.valueOf((System.currentPageReference().getParameters().get('startDate')));
Datetime dt = datetime.newInstance(stDate.year(), stDate.month(),stDate.day());
startDate = Date.valueOf(dt.format('DD/MM/YYYY'));
Please, could you help me remediate this issue?
Thanks & Regards,
DR
I'm getting an Invalid Date Error in a VF Page emanating from the following code :
Date stDate = Date.valueOf((System.currentPageReference().getParameters().get('startDate')));
Datetime dt = datetime.newInstance(stDate.year(), stDate.month(),stDate.day());
startDate = Date.valueOf(dt.format('DD/MM/YYYY'));
Please, could you help me remediate this issue?
Thanks & Regards,
DR
Mark as best answer, If it resloves !! change into
Mark as resloved if it helps :) :)
Thanks,
Bhanu Prakash
visit ForceLearn.com
Use this:
Let me know if it helps.
Thanks!
Thanks,
Bhanu Prakash
visit ForceLearn.com