From: <php...@li...> - 2010-11-16 08:21:27
|
Hi I have a java class that return a date. I would like to use the java DateFormatter class to format the date, but it gives me an error. Sample: $hello= new java("mytest.services.MyService"); $date=java_values($hello->mydate); $df = new JavaClass('java.text.DateFormat'); $formater = $df->getDateInstance($df->SHORT); $echo("formater->format($date"); Result is: Uncaught [[o:Exception]:"java.lang.Exception: GetProperty failed: [[o:SimpleDateFormat]]->format. Cause: java.lang.NoSuchFieldException: format (with args:) But the DateFormat class does have a format method. Hermod * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |