This topic contains 1 reply, has 2 voices, and was last updated by  Duo_Liang 2 months, 1 week ago.

  • Author
    Posts
  • Participant
    mailtodanish
    Member since: 20.11.2017
    Number of posts: 23

    Hello!

    How to set days when translation will expired.

    Thanks

    Keymaster
    Duo_Liang
    Guru
    Member since: 14.06.2018
    Number of posts: 691

    Score

    0

    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


    Duo Liang
    OneSpan Junior Technical Evangelist

You must be logged in to reply to this topic.