• Resolved venom791

    (@venom791)


    Hi there,

    In theory what i’m trying to achieve is rather simple(logically) however the plugin doesn’t seem to be able to do it.

    I’m using 2 date pickers.
    “Depart Date” and “Return Date” which determines how long a client is gone for. (for house sitting)
    Math: return date – depart date = total days to house sit.

    Problem occurs when the return date occurs on a new month for example:
    Depart Date: 2016/10/26
    Return Date: 2016/11/10

    It doesn’t seem to have the logic to subtract dates keeping in mind days,months etc. It subtracts it as 20161110 – 20161026 = 84. The answer should be 16.

    I absolutely like the plugin so I was wondering if someone has a solution for this.

    Kind Regards ~Venom.

    • This topic was modified 8 years, 1 month ago by venom791.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor christiechirinos

    (@christiechirinos)

    Hi Venom,

    Thanks for using Caldera Forms. I’m glad you like the plugin, and yes, this certainly looks like something that should be happening with dates, and isn’t. I’ve opened an issue in our Github: https://github.com/CalderaWP/Caldera-Forms/issues/908

    If you could please leave a comment on that issue with the full debug information that you can find in the Caldera Forms support submenu, that might be helpful for us to fix this.

    Thanks again for using Caldera Forms. If you ever need any help with Caldera Forms, please do not use this forum, instead open a support ticket at https://CalderaWP.com/support or if you find a bug, please open an issue at https://github.com/CalderaWP/Caldera-Forms/issues. Thanks!

    Thread Starter venom791

    (@venom791)

    Ok great, thank you Christie. I must admit Shelob9’s comment made me laugh. I recon it will be a great feature for your plugin. Looking forward to one day see it in action ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Date Calculation’ is closed to new replies.