Forum Discussion

MRutten's avatar
MRutten
Occasional Contributor
5 years ago

ReadyAPI 3.3.1 is not understanding my code to add days to a date (version 3.1.0 did!)

with version 3.1.0 this was working perfectly in XML request (adding 10 days to systemdate):   <ZKN:einddatumGepland>${=new java.text.SimpleDateFormat("yyyyMMdd").format(new java.util.Date()+10)}</...
  • nmrao's avatar
    5 years ago
    Because of java update in 3.3.1

    Use
    <ZKN:einddatumGepland>${= java.time.LocalDateTime.now().plusDays(10).format(java.time.format.DateTimeFormatter.ofPattern("yyyy-MM-dd"))}</ZKN:einddatumGepland>