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

    (@codepeople)

    Hi,

    Could you send me the URL to your page to take a look, please?

    If you only need the number of days between two dates, the TODAY operation won’t be needed (the TODAY operation is part of the DATE Module available only in the Developer version of the plugin), you should insert two date field, for example fieldname1 and fieldname2, and calculate the difference between them:

    ABS(fieldname1-fieldname2)

    The value of date field by default is the date of today, so you can hide one of date fields through CSS.

    Best regards.

    Thread Starter eleist

    (@eleist)

    no sorry its local.

    today, abs, manual input…nothing works for me. the default value for the date field ist 01/01/1970.

    you see in my first post, that the field is already hidden…

    Field1 date blank [] class hidden
    Field2 date input [01/10/2014]

    Field1 – Field2 = 16344

    16344 is the calculated value of days between these two date. abs brings the same result -.- so the date of today is in the year 1970.

    Plugin Author codepeople

    (@codepeople)

    Hi,

    Please, try entering the value 0 in the “Default date” attribute of the date field. If this option does not work in your case, I will need access to your form, to check the issue in detail.

    Best regards.

    Thread Starter eleist

    (@eleist)

    i set it up on an other installtion and it worked….solved…but even dont know why the date has changed to 1970.

    Plugin Author codepeople

    (@codepeople)

    Hi,

    I’m sorry, but without check the form inserted in the page, I can’t help you to detect the cause of date change, but if you have been able to solve the issue, congratulations, it’s a good news ??

    Best regards.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘TODAY() or current date’ is closed to new replies.