Writing D:/inetpub/webs/vincenzodevivocom/wiki/data/cache/2/2ddd41cd478d0330eed55b619d469048.i failed
Unable to save cache file. Hint: disk full; file permissions; safe_mode setting.
Writing D:/inetpub/webs/vincenzodevivocom/wiki/data/cache/2/2ddd41cd478d0330eed55b619d469048.i failed
Unable to save cache file. Hint: disk full; file permissions; safe_mode setting.
Writing D:/inetpub/webs/vincenzodevivocom/wiki/data/cache/2/2ddd41cd478d0330eed55b619d469048.xhtml failed

Date & Time

Ottenere la data attuale come stringa in Java

How to get current date time in Java as a string

Calendar now = Calendar.getInstance();
SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss z dd/MM/yyyy");
String stringDate = sdf.format(now.getTime()); 
// 20:00:52 CEST 13/05/2011

Come convertire una stringa in un oggetto Date in Java

Convert String to Date in Java

SimpleDateFormat format = new SimpleDateFormat( "dd.MM.yyyy" );
Date date = format.parse( myString );
 
code/java/datetime.txt · Last modified: 2011/05/15 15:45 by Vincenzo De Vivo
 
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki