Setting default value to DateTime field in lightning

Setting default value to DateTime field in lightning, default datetime in lightning with moment.js, moment.js, iso date format salesforce, iso date salesforce, iso date lightning, default date lightning, default datetime lwc, datetime attributes take string as default value , default datettime lightning
Setting default value to DateTime field in lightning

We need to use momentum.js third party library for setting default value to DateTime field in lightning.

right click to save momentum.js from this link and upload it under static resource in salesforce.

In this below example source code i set DateTime to today, plus 15 minutes forward in time.

Be the first to comment

Leave a Reply

Your email address will not be published.


*