title: Scheduling task using Spring Scheduler
body: <p>I am using cron expression for the last working day of the month like this: </p>
  
  <pre><code>@Scheduled(cron = "0 0 8 LW * ?")
  </code></pre>
  
  <p>But after running this I got:</p>
  
  <pre><code>java.lang.IllegalStateException: Encountered invalid @Scheduled method 'fetchEmployeesDetailsAndSendNotification': For input string: "LW"
  </code></pre>
  
  <p>although the cron expression is valid.</p>
  
  <p>Why am I getting this exception, and how can I fix it?</p>