-
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
What are External Objects in Salesforce? | The Ultimate Guide
Salesforce is a cloud-based customer relationship management (CRM) platform that allows businesses to manage their interactions with customers and prospects. Salesforce offers a variety of…
7 Keys to a Successful Salesforce Integration
Organizations rely on multiple software and platforms to carry out specific business operations. With apps dedicated to sales, marketing, and collaboration, teams have unlimited access…
Popular Salesforce Videos
What is Salesforce? Career Opportunities and Job Roles in Salesforce!
This video deals with the most important aspect of Salesforce. You'll learn the following things from this video:- 1. What is Salesforce? 2. What business…
Build Better with Salesforce Architects
A Salesforce Architect is a trusted advisor and leader who partners with business stakeholders and executives to design a vision and architecture for a solution…
4 Benefits of Salesforce Data Services (ETL)
When your enterprise needs to integrate data from a different application, Salesforce Data Services will help your company in Extracting, Transforming, and Loading the gathered…