
<apex:outputLabel value="Start Date" for="start_date"/>
<apex:input type="date" required="true" id="start_date" value="{!saleInfo.startDate}"/>
<apex:outputLabel value="End Date" for="end_date"/>
<apex:outputLabel value="{!saleInfo.endDateStr}"/>
.. from controller:
class SaleInfo {
public date startDate { get; set; }
...
saleInfo.endDateStr = saleInfo.endDate.format();
...
1 answer
Hello Sarav, This community is focused on help with declarative configuration changes and non-programmatic solutions. You have a better chance of getting this issue resolved if you post it on one of the following forums [lots of talented developers out there who must have worked on similar problems before]:
- StackExchange [http://salesforce.stackexchange.com]
- Official Developer Forum [https://developer.salesforce.com/forums]
For any configuration changes and point and click design solutions, feel free to post in this community and we will be glad to help you out.