-
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
Salesforce Mobility & Security – When the user’s PIN is simply not enough
Many of us love and prefer using Salesforce and working with Salesforce data in remote locations, on mobile devices. With an ever-increasing popularity and high-speed…
Salesforce Future Trends: 5 Major Trends to Watch Out For (2022 - 2023)
Salesforce trends for the year 2022-2023! Has it created too much buzz around? Well, possibly yes! Coz it is worth it… For more than two…
How to Use Map In Lightning Component?
For using the map in the lightning component, we need to define the attribute of the type map to hold key-value pairs. In this blog,…
Popular Salesforce Videos
What is Workflow Rule in Salesforce | Salesforce Interview Questions and Answers
What is Workflow Rule in Salesforce | Salesforce Interview Questions and Answers
Salesforce Developer Tutorial - How and When to Use Apex Managed Sharing
In this episode, we go over what Apex Managed Sharing is in Salesforce when you should actually use apex managed sharing and how to actually…
2020 Salesforce App Builder Certification Questions Explained
The Salesforce Platform App Builder credential is designed for individuals who would like to demonstrate their skills and knowledge in designing, building, and deploying custom…