Class DateParser

java.lang.Object
com.testmonitor.parsers.DateParser

public class DateParser extends Object
  • Constructor Details

    • DateParser

      public DateParser()
  • Method Details

    • toDateString

      public static String toDateString(LocalDate date)
      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

      public static LocalDate toDateObject(String date)
      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.