I need to populate Last week, Last two weeks, current Month dates in Visualforce Component, how can I do that.
<apex:outputText value="{0, date, MMMM d',' yyyy}">
<apex:param value="{!Today()}" />
</apex:outputText>
This would give me todays date. But I need last week date range, or atleast start of last week, and last two weeks. if we cannot achieve this is the visualforce component, we can try some logic in apex controller as well. Any suggestions. Thanks!
Apex
.