Package com.testmonitor.parsers
Class DateParser
java.lang.Object
com.testmonitor.parsers.DateParser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LocalDatetoDateObject(String date) Parse a datestring from the TestMonitor API to a date object.static StringtoDateString(LocalDate date) Parse a date object to a datestring that is accepted by the TestMonitor API.
-
Constructor Details
-
DateParser
public DateParser()
-
-
Method Details
-
toDateString
Parse a date object to a datestring that is accepted by the TestMonitor API.- Parameters:
date- The date you want to parse into a string- Returns:
- The datestring in year-month-day format.
-
toDateObject
Parse a datestring from the TestMonitor API to a date object.- Parameters:
date- The datestring you want to parse into a dateobject- Returns:
- The datestring in year-month-day format.
-