-
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
Why Salesforce Integration Can Be Your Best Bet for Business Growth
Welcome to the age of the Customer. The only riddle that matters here is—how to connect better with them, carve meaningful relationships, address their problems…
Salesforce Experience Cloud Support Portal: Key Considerations Before Implementation
In the realm of Salesforce Experience Cloud and its support portals, understanding the potential and possibilities is paramount. The Salesforce Experience Cloud is a robust…
Salesforce Spring '23 Release Overview
Salesforce is kick-starting the year with a whole host of updates in the Spring ’23 release, some of which we’ve outlined below! It's all about…
Popular Salesforce Videos
TrailheaDX 2021: Salesforce's Parker Harris Explains How Low-code is Reshaping Software Development
Salesforce CTO and co-founder Parker Harris talk about TrailheaDX 2021 and how low-code is dramatically changing the process of business software development. Watch and learn.
Understanding Salesforce Field Service Mobile App - An Overview | AblyPro
Field Service mobile app is an all-in-one tool designed for today’s mobile workforce. Salesforce Field Service Mobile App is an innovative tool designed to help…
Dreamforce To You 2020 - Algoworks
The wait is over – Dreamforce will be going ahead in 2020! Salesforce has gone back to the drawing board and rebuilt Dreamforce 2020 for…