• Resolved klingbeil

    (@klingbeil)


    Hello
    I’m calculating the date of birth.
    It prints the result to the cell. But it does not write to the result section that comes with html.
    What could be the problem?

    (function(){
    var o = DATEDIFF(NOW(), fieldname19, 'dd-mm-yyyy', 'y');
    return o['years']+' Y?l'+ o['months']+' Ay'+ o['days']+' Gün';
    jQuery('#calculation-yashesaplama').html(yashesaplama);
    return yashesaplama;
    })()
    
    <span id="calculation-yashesaplama" style="color:#ff6504;"></span>

    Your age : [10] – [283 days until your new age] – [You were born on a Saturday.]

    How can we print like this?

    • This topic was modified 1 year, 7 months ago by klingbeil.
    • This topic was modified 1 year, 7 months ago by klingbeil.
Viewing 4 replies - 31 through 34 (of 34 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @klingbeil

    In this case, you must use operations like MONTHNAME and WEEKDAYNAME.

    Please, read the documentation of Date/Time operations module by visiting the following link:

    https://cff.dwbooster.com/documentation#datetime-module

    
    (function(){
    var d = DATETIMESUM(TODAY(), 'yyyy-mm-dd', fieldname1, 'd');
    return WEEKDAYNAME(d)+' '+MONTHNAME(d)+' '+DAY(d)+' '+YEAR(d);
    })()

    Best regards.

    Thank you! That worked great. One more question. Is there a way to exclude weekends using this same operation?

    (function(){
    var d = DATETIMESUM(TODAY(), 'yyyy-mm-dd', fieldname1, 'd');
    return WEEKDAYNAME(d)+' '+MONTHNAME(d)+' '+DAY(d)+' '+YEAR(d);
    })()
    Plugin Author codepeople

    (@codepeople)

    Hello @klingbeil

    Please, read the documentation of the Date/Time operations module, the DATETIMESUM operation includes a parameter to ignore weekends.

    Best regards.

    Found it. Thanks for your help.

Viewing 4 replies - 31 through 34 (of 34 total)
  • The topic ‘Date Calculator’ is closed to new replies.