I have a problem in SimpleDateFormatter and it will be nice if any one help me.
As we know a user can set any valid format to a SimpleDateFormatter.e.g "mm
d", "MM/dd/yy" etc.
Now I want that if I have set a format to a SimpleDateFormatter (say "MM/dd:yy")and if I pass a string of numbers say "123456" it should format the string in the specified format.(ie. 12 should be taken as month 34 should be taken as day (can convert 34 to 30+4 or can throw error.))Similar to what MS Excel does when we set format of a cell of MS excel to DateFormat.
Well DateaFormatter expects the input to be formatted in the same pattern as that was set (i.e if we have set the pattern as "MM
d:yy" it expects value as 11:11:11 to format else it will trhow exception)
Any suggestions, ideas is welcome.