+ Start a Discussion
Marcelo AgostinhoMarcelo Agostinho 

Can i parse an String to Date ?

Hello again.


Well everybody`s know about the SimpleDateFormat class in Java, i'm looking for something like it in the Apex Code.



What i need to do is:


I ll receive an set of String containing some formated Datas like it "10/2010".

I want to iterate over this set and convert any String to Date and populate one List<Date>.


Tks for everything!

date mydate = date.parse('12/27/2009');
Marcelo AgostinhoMarcelo Agostinho

Tks for the Reply ssmarkit.. i has small problems to understand this method but know i done what i want.... i ll post the code soon to help other peoples!


Tks for everything