en-USzh-CNes-ESfr-FR
Search
You are here:Support  >  Articles
Articles
How to use DateDiff field type in DNNSmart.Super Form module?

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.
about author

DNNSmart

Developer

Although DNNSmart was newly founded in August 2012, we devoted to DNN development work since 2008. We specializes on the DotNetNuke (DNN) Content Management System including DNN skin design, DNN programming and website construction. Our development team is located in China, our professional and outstanding developers are passionate about web design, programming and web applications.

Comments (0)

    Leave a comment

    2000 character(s) remaining. Comment limited to 2000 characters.
    Post Comment
    Support
    Search
    Calendar
    Categories
    Authors
    Archives
    Most
    • online quran says: Online Quran

      Sep 30, 2019
    • iwantcheats says: Iwantcheats

      Sep 30, 2019
    • Online Quran Academy says: Online Quran Academy

      Sep 30, 2019
    • Learn Quran Online says: Learn Quran Online

      Sep 30, 2019
    • bilal khan says: Stunning! This could be one unequivocal of the most productive regions We ave ever get together transversely over as for this issue. Genuinely Excellent. I am in addition an expert in this subject so I can comprehend your exertion.



      Walnoten

      Sep 29, 2019
    • macrame toran says: Thanks for this beautiful blog if you want to learn macrame arts then contact me any time

      Sep 28, 2019
    Home   |   EffectCollection   |   DNNSmart Store   |   Membership   |   Free Downloads   |   Support   |   Service
    Quick Contact