Service Virtualization

  • 1.  Magic Dates - Delta + 1 Month

    Posted Apr 19, 2018 07:49 AM

    Hi All,

     

    I am trying to get to Magic Date with current date plus 1 month. Not 30 days (30D). I need specifically 1 month.
    Is it possible?
    How can we get it?
    Regards.



  • 2.  Re: Magic Dates - Delta + 1 Month
    Best Answer

    Broadcom Employee
    Posted Apr 20, 2018 10:33 AM

    As is DevTest provides the functionality with days not like 1 month but I think customization is possible. You can do something like below to get the date you are looking in a Match Script or in your VSM and use that property in your response.

     

    Calendar cal = Calendar.getInstance(); 
    cal
    .add(Calendar.MONTH, 1);

    or

    LocalDate futureDate = LocalDate.now().plusMonths(1);