-
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
How Does Salesforce Marketing Cloud Help in Building Customer Relationship for Life?
Salesforce Marketing Cloud: A Game-Changer for Marketers Salesforce Marketing Cloud (SFMC) is one of the top-rated automation tools in the industry, known for being packed…
Fast-Prep Huawei H13-511_V5.5 Practice Questions Exam Dumps
Get Ready to Pass Huawei H13-511_V5.5 Exam - Buy Questions and Excel in Your Upcoming Attempt Validexamdumps.com is pleased to announce that we have a…
Zendesk and Salesforce Connector - Hassle-free Data Migration from Zendesk to Salesforce
From small businesses to large organizations, data migration is a challenge. Also, keeping the data secure during different phases of the migration process has been…
Popular Salesforce Videos
Custom Portfolio in Salesforce | Mini Project | Salesforce Tutorials
In this video, we will create a custom portfolio in Salesforce. We will create a custom community in Salesforce and customize it to create the…
Salesforce Service Cloud Training Videos For Beginners
This Salesforce Training video will explain how to create case assignment rules, creating a web-to-case form in Salesforce. The demo in this video will help…
Salesforce Guide to Sharing Architecture
The Salesforce sharing model is an essential element in your organization's ability to provide secure application data access. Therefore, it's crucial to architect your sharing…