[Solved] How i convert String to int? [duplicate]


Use

String str = String.format("%tM", date );

You get the exception because you try to convert a String “Current Date/Time : xx” to a number;

1

solved How i convert String to int? [duplicate]