Groovy web console

subscribe to the feed Subscribe
to this
site

stringDate to LocalDate

Published 2 months ago by Rutger de Vries with tags localdate
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
import java.time.LocalDate
startDateString = '2020-01-01'
contractStartDate = LocalDate.parse(startDateString )
lookBackDate = contractStartDate.plusYears(-2)