• Resolved shameerkr

    (@shameerkr)


    Hi,

    I just want to generate expiry date of a product from dropdown box.

    eg.

    Item name (dropdrown with search) – Item1 (Expiry 30 Days)

    Prod Date – date field (24/03/2023)

    Expiry – 23/04/2023

    Thanks,

    • This topic was modified 1 year, 8 months ago by shameerkr.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter shameerkr

    (@shameerkr)

    Below code is working fine. The result getting as 8, April 2023, but i need 08/04/2023 format.

    (function(){
    var d = fieldname11+fieldname12;

    return DAY(d)+’, ‘+MONTHNAME(d)+’ ‘+YEAR(d);
    })()

    Thread Starter shameerkr

    (@shameerkr)

    Now its OK.

    (function(){
    var d = fieldname11+fieldname12;

    return DAY(d)+’/ ‘+MONTH(d)+’/ ‘+YEAR(d);
    })()

    Plugin Author codepeople

    (@codepeople)

    Hello @shameerkr

    Excellent !!!

    Another alternative would be:

    GETDATETIMESTRING(fieldname11+fieldname12, 'dd/mm/yyyy')

    Best regards.

    Thread Starter shameerkr

    (@shameerkr)

    Wow great. Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Expiry date calculation’ is closed to new replies.