mailtodanish | Posts: 47 how to set Transaction expiry days Monday, January 7, 2019 at 10:36pm 0 votes Hello! How to set days when translation will expired. Thanks January 7 Created January 21 Last Updated 5 years ago Last Reply 1 Replies 20 Views 2 Users 0 Likes 0 Links Duo_Liang | Posts: 3776 Reply to: how to set Transaction expiry days Tuesday, January 8, 2019 at 02:46am 0 votes Hi there, Try this code below: int expiryDay = 15; Calendar calendar = new GregorianCalendar(); calendar.add(Calendar.DATE, expiryDay); Date expiryDate = calendar.getTime(); DocumentPackage newPackage = newPackageNamed("Test Due") ... .expiresAt(expiryDate) .build(); Hope this could help! Duo Log in or register to post comments
Duo_Liang | Posts: 3776 Reply to: how to set Transaction expiry days Tuesday, January 8, 2019 at 02:46am 0 votes Hi there, Try this code below: int expiryDay = 15; Calendar calendar = new GregorianCalendar(); calendar.add(Calendar.DATE, expiryDay); Date expiryDate = calendar.getTime(); DocumentPackage newPackage = newPackageNamed("Test Due") ... .expiresAt(expiryDate) .build(); Hope this could help! Duo Log in or register to post comments
Reply to: how to set Transaction expiry days
Tuesday, January 8, 2019 at 02:46am