• Resolved MasG

    (@dhevilz)


    hiii.. can you help me to change from dd/mm/yyyy like 25/11/2022 to 25 November 2022

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @dhevilz

    You can format the date as you want in the calculated field but not in the date/time field.

    For example, assuming you want to get today’s date in the format described. Insert a calculated field in the form, and enter the piece of code below as its equation:

    (function(){
    var months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
    return DAY(TODAY())+' '+months[MONTH(TODAY())-1]+' '+YEAR(TODAY());
    })()

    Best regards.

    Thread Starter MasG

    (@dhevilz)

    from above function, can i use flex date?
    choose the date (day) at will

    Plugin Author codepeople

    (@codepeople)

    Hello @dhevilz

    Yes, that’s possible. If you have a date field, for example the fieldname123, you only need to replace TODAY() with the field’s name in the equation:

    (function(){
    var months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
    return DAY(fieldname123)+' '+months[MONTH(fieldname123)-1]+' '+YEAR(fieldname123);
    })()

    Best regards.

    Thread Starter MasG

    (@dhevilz)

    nice bro

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