Which of the following relative date expressions would you use to look for “Start of the current year”? Assume this particular API expects dates in the format of yyyyMMdd.

  • {date.startOfYear.format(‘yyyyMMdd’)}
  • {date.startOfYear(‘yyyyMMdd’)}
  • {startOfYear_format(‘yyyyMMdd’)}
  • {date_startOfYear.format(‘yyyyMMdd’)}

Leave a Reply