Salesforce

Salesforce

Standard Objects in Salesforce

Standard objects are objects that are included with Salesforce. Common business objects like Account, Contact, Lead, and Opportunity are all standard objects. Trailhead - https://trailhead.salesforce.com/en/content/learn/modules/data_modeling/objects_intro Reference Link - https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_list.htm

Salesforce

Age calculation using Apex and Visualforce

Sample code: Visualforce page: <apex:page controller="Sample" ><apex:form >    <apex:pageblock >        <apex:pageblockSection >            <apex:pageblockSectionItem >Date:</apex:pageblockSectionItem>            <apex:pageblockSectionItem ><apex:inputtext onfocus="DatePicker.pickDate(true, this , false);" value="{!dat}" id="dt"/></apex:pageblockSectionItem>            <apex:pageblockSectionItem >Age:</apex:pageblockSectionItem>                                    <apex:pageblockSectionItem ><apex:outputText value="{!age}" /></apex:pageblockSectionItem>                    ....