You need to sign in to do that
Don't have an account?
ahmadkhan
NEED HELP WITH STRING TO DATE Conversion
Hi guys,
i need an urgent help with this
i have two picklist one Months in which there are twelve month {January febuarary,..so on} and another is years{2013,2014, to 2020}
i need to convert these two picklists to one date field can any one who wrote this function and share his code? i am in a lil bit hurry.
Thanks,
Ahmed
map the months in page to corresponding numbers ie Jan->1,feb->...
and for year 2016->2016 then for date 1->1,2->2...so on.(all this you have to do in a VF page).
Then in controller
All Answers
map the months in page to corresponding numbers ie Jan->1,feb->...
and for year 2016->2016 then for date 1->1,2->2...so on.(all this you have to do in a VF page).
Then in controller
ahmadkhan
You didn't mention if you needed this code in a trigger or a controller/extension. I am going to assume a trigger and also assume you do not have a field for the day of the month (and you just want the 1st of the month) then you can build a map for the Months and convert as such:
Hope this helps.
Regards
MellowRen
Thanks Alot.