-
get Year only from input field type="date" in lightning component controller
hi,
can we get only year value from input whose type is DATE in controller.js
like
<lightning:input type="Date" label="DOB" value="{!v.CustomerRecord.DOB__c}" required="true" aura:id="DOB" />var date=component.find('DOB').get('v.value');
i want to do age comparison ,plz provide any proper solution..
Log In to reply.
Popular Salesforce Blogs
The Most Important Pardot Automation Rules You Need to Know in 2023
Pardot is a powerful marketing automation platform that enables businesses to streamline their lead generation and nurturing efforts. One of the key features of Pardot…
Light For Nonprofits After Luminate | Salesforce Guide
Recently, Blackbaud revealed that Luminate CRM will be phased out on June 30, 2022. Blackbaud Luminate has a long successful past. This approach started as…
How I Landed Into My First Job In The Salesforce Technology
In this blog, I am going to share about my journey, how I landed my first job in Salesforce technology. To give an overview of…
Popular Salesforce Videos
COVID-19 Impact on The Automotive Industry -Digitization With Salesforce Can be a Solution
Coronavirus is expected to create a physical contactless environment with an increased thrust on online assessment and buying of vehicles. This is a huge shift…
Invoke a Salesforce function from Apex
Learn about the different ways in which you can invoke a Salesforce. Watch this video and learn, if you have any doubts or concerns, do…
Salesforce Tower San Francisco Virtual Community Tour
Wherever you are around the world, join us for a virtual tour of Salesforce Tower San Francisco, our global headquarters. Together, we’ll take a walk…