Reputation: 55
I currently have the below code utilized for retrieving current date in spring batch. Is there a way to implement a similar solution, but instead, returning the previous business day instead of the currentDate?
<bean id="fastDateFormat" class="org.apache.commons.lang.time.FastDateFormat"
factory-method="getInstance">
<constructor-arg value="yyyyMMdd" />
</bean>
<bean id="currentDate" class="java.util.Date" factory-bean="fastDateFormat"
factory-method="format">
<constructor-arg>
<bean class="java.util.Date" />
</constructor-arg>
</bean>
Upvotes: 0
Views: 30