DateTests.jpage 112 Bytes
Newer Older
O'Reilly Media, Inc.'s avatar
O'Reilly Media, Inc. committed
1 2 3 4 5 6 7



Date date = new Date();
Date rounded = DateUtils.round( date, Calendar.ERA );

System.out.println( rounded );