1

<div class="slds-form-element">
<div class="slds-form-element__control">
   <ui:inputText aura:id="grcpno"
                 label="gr cpno"
                 class="slds-input"
                 labelClass="slds-form-element__label"
                 value="{!v.grcpno.Name}"
                 required="true"/>

</div>

</div>


<div class="slds-form-element">
<div class="slds-form-element__control">
   <ui:inputText aura:id="startDate"
                 label="Start Date"
                 class="slds-input"
                 labelClass="slds-form-element__label"
                 value="{!v.StartDate.Date__c}"
                displayDatePicker="true"/>

</div>

</div>

<div class="slds-form-element">
<div class="slds-form-element__control">
   <ui:inputText aura:id="endDate"
                 label="End Date"
                 class="slds-input"
                 labelClass="slds-form-element__label"
                 value="{!v.endDate.Date__c}"
                 displayDatePicker="true"/>

</div>

</div>

2

I think you want to use ui:inputDate not ui:inputText

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.