Hello every one,
i write this code to format a date
SimpleDateFormat sdf = new SimpleDateFormat ("mm/dd/");
String date = sdf.format(updatedParameters
[i][1]);
paramValue.setDateField(sdf.parse(date));
where is a Strin
Is updatedParameters[i][1] a Date type of object?
Kevin
On Tue, Dec 23, 2008 at 8:02 PM, arnaud wrote:
>
> Hello every one,
> i write this code to format a date
>
> SimpleDateFormat sdf = new SimpleDateFormat ("mm/dd/");
> String date =
> sdf.format(upda
The format would have to be "MM/dd/" is you want month/day/year. MM is
the month, mm is the minutes. But that's not the answer to your question,
sorry.
Fred
On Tue, Dec 23, 2008 at 21:02, arnaud wrote:
>
> Hello every one,
> i write this code to format a date
>
> SimpleDateFormat sdf = n
That is the value of updatedParameters[i][1] Thu Dec 18 00:00:00 UTC
+0100 2008.
Fred Janon a écrit :
> The format would have to be "MM/dd/" is you want month/day/year. MM is
> the month, mm is the minutes. But that's not the answer to your question,
> sorry.
>
> Fred
>
> On Tue, Dec 23, 20
SimpleDateFormat.format is used to convert java.util.Date object to a String
object. You used it in oposite direction by converting a String object to
Date object. That's the reason of exception happened.
On Tue, Dec 23, 2008 at 10:25 PM, arnaud wrote:
>
> That is the value of updatedParameters[