How to use Date Diff field type?
This field type is mainly used to display the difference between two dates, this allows the form to be used as a collection form similar to a rental system.
How to configure?
First of all, you need to know how to configure one payment form, please refer to the article below.
https://www.dnnsmart.net/Support/Articles/tabid/222/ContentId/9/language/en-US/How-to-set-up-a-payment-form.aspx
If you want to use subtotal field, please refer to the article below.
https://www.dnnsmart.net/Support/Articles/tabid/222/ContentId/35/language/en-US/How-to-configure-subtotal.aspx
Next, we will explain how to use Date Diff field.
First of all, you need to create two date fields, one is start date and the other is end date.
Note: Please configure Date Format to be yy-mm-dd.
Then configure Night field, configure the field type of this field to be Date Diff. And please specify the number of the start date field and the end date field. Please refer to screenshot below.
If you want to display a subtotal, you can add a subtotal field and fill in the formula. In this case, the subtotal will calculate a value based on the Night field.
Finally, configure the formula of total amount in Module Settings->Calculate & Payment Options to calculate your final result. The end result is the amount that users need to pay.
Please refer to screenshot below, it’s the final display interface of the front-end.
That’s all! Thanks for your reading. I believe that you would know how to use DateDiff field in DNNSmart.Super Form module after reading this article. If you have any question, please send an email to us directly.