How to convert cron expression to date or time
<p>I am trying to convert the cron expression to date.
for example this is <code>0 0 23 1 1-12 ?</code> expression. I want to convert to corresponding date.
How do I achieve this?</p>

<p>This is what I tried but it just give the description, Human readable but I want to achieve proper date format.</p>

<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>import java.text.ParseException;
import java.util.Date;

import org.quartz.CronExpression;

public class CRON {
 
 public static void main(String args[]) throws ParseException
 {
  //AutoRegistrationJobDao obj=new AutoRegistrationJobDao();
  //obj.updateLastAutoRegSchdl();
  
  String cron ="0 0 23 1 1-12 ?";
  System.out.println("cron :"+cron);
  
  CronExpression cronExpression =new CronExpression("0 0 23 1 1-12 ?");
  System.out.println(cronExpression.getExpressionSummary());
  System.out.println(cronExpression.getFinalFireTime());
  //System.out.println(cronExpression.getNextValidTimeAfter(date));
  
  try {
   CronExpression c =new CronExpression(cron);
   Date date=c.getFinalFireTime();
   System.out.println(date);
   
   
   System.out.println(c.getFinalFireTime());
   
   
  } catch (ParseException e) {
   // TODO Auto-generated catch block
   e.printStackTrace();
  }
  
 }
   
}</code></pre>
</div>
</div>

This is what I tried, I am using multiple method and using different class, but no luck
Output:</p>

<pre class="lang-none prettyprint-override"><code>seconds: 0
minutes: 0
hours: 23
daysOfMonth: 1
months: 1,2,3,4,5,6,7,8,9,10,11,12
daysOfWeek: ?
lastdayOfWeek: false
nearestWeekday: false
NthDayOfWeek: 0
lastdayOfMonth: false
</code></pre>