public class JetDate extends Object implements IJetDate
Constructor and Description |
---|
JetDate()
Create a new JetDate set to now
|
JetDate(Date date)
Create a new JetDate
|
JetDate(Date date,
String format)
Create a new JetDate
|
JetDate(String date)
Create a new JetDate
|
JetDate(String date,
String format)
Create a new JetDate
|
Modifier and Type | Method and Description |
---|---|
static JetDate |
fromJetValueOrNull(String value)
Attempt to take some value and turn it into a valid JetDate.
|
Date |
getDate()
Retrieve the date.
|
String |
getDateString()
Retrieve the exact string retrieved from the jet api response that
represents a date.
|
public JetDate()
public JetDate(String date)
date
- Date stringpublic JetDate(Date date)
date
- date to usepublic JetDate(Date date, String format)
date
- date to useformat
- format stringpublic static JetDate fromJetValueOrNull(String value)
value
- Jet valuepublic String getDateString()
getDateString
in interface IJetDate
Copyright © 2017. All rights reserved.