public class CalculationUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static int |
age(Date d) |
static int |
ageOn(Date today,
Date birthdate)
Calculates the age of something on a specified date.
|
static BigDecimal |
convertToMoney(Locale loc,
String s)
Convert to a monetary amount.
|
static String |
convertToMoneyString(Locale loc,
BigDecimal n,
boolean dofraction,
boolean addmonetary) |
static Date |
date(String str)
Convert a date string in the format yyyy mm dd (with any separators)
to a date value.
|
static Date |
dutchDate(String s)
Converts a string to a java.util.Date object.
|
static Date |
dutchDateAndTime(String s) |
static Date |
dutchDateRAW(String s)
Converts a string to a java.util.Date object.
|
static String[] |
getDutchMonthShorts() |
static boolean |
isFutureDate(Date a) |
static void |
main(String[] args) |
static Date |
makeDate(int year,
int month,
int day) |
static Date |
makeDateRAW(int year,
int month,
int day) |
public static final String[] getDutchMonthShorts()
public static int ageOn(Date today, Date birthdate)
today - birthdate - Exceptionpublic static int age(Date d)
public static Date date(String str) throws Exception
str - Exceptionpublic static Date dutchDate(String s) throws Exception
Exceptionpublic static Date dutchDateAndTime(String s) throws javax.servlet.jsp.el.ELException
javax.servlet.jsp.el.ELExceptionpublic static Date dutchDateRAW(String s)
public static Date makeDate(int year, int month, int day) throws Exception
Exceptionpublic static Date makeDateRAW(int year, int month, int day)
public static boolean isFutureDate(Date a)
public static BigDecimal convertToMoney(Locale loc, String s) throws javax.servlet.jsp.el.ELException
loc - s - javax.servlet.jsp.el.ELExceptionpublic static String convertToMoneyString(Locale loc, BigDecimal n, boolean dofraction, boolean addmonetary)
public static void main(String[] args)
Copyright © 2017 etc.to. All rights reserved.