public class DateUtil
extends java.lang.Object
Constructor and Description |
---|
DateUtil() |
Modifier and Type | Method and Description |
---|---|
static int |
GetDate(java.util.Date dt)
Returns the date corresponding to the input java.util.Date
|
static int |
GetMonth(java.util.Date dt)
Returns the month corresponding to the input java.util.Date.
|
static int |
GetYear(java.util.Date dt)
Returns the year corresponding to the input java.util.Date.
|
static java.lang.String |
MakeOracleDateFromBBGDate(java.lang.String strBBGDate)
Create an Oracle date trigram from a Bloomberg date string
|
static java.lang.String |
MakeOracleDateFromYYYYMMDD(java.lang.String strYYYYMMDD)
Creates an Oracle date trigram from a YYYYMMDD string
|
public static final int GetDate(java.util.Date dt) throws java.lang.Exception
dt
- java.util.Date Inputjava.lang.Exception
- Thrown if input date is invalidpublic static final int GetMonth(java.util.Date dt) throws java.lang.Exception
dt
- java.util.Date Inputjava.lang.Exception
- Thrown if input date is invalidpublic static final int GetYear(java.util.Date dt) throws java.lang.Exception
dt
- java.util.Date Inputjava.lang.Exception
- Thrown if input date is invalidpublic static java.lang.String MakeOracleDateFromYYYYMMDD(java.lang.String strYYYYMMDD)
strYYYYMMDD
- Date string in the YYYYMMDD format.public static java.lang.String MakeOracleDateFromBBGDate(java.lang.String strBBGDate)
strBBGDate
- Bloomberg date string