When we can use de item "L" for last elements in a cron job? Version Hangfire1.8.14

I’m programming a Job that should execute it the last day at every month, and I want to know if the version of Hangfire tha we have, supports that expression.

This is what I want to do:
RecurringJob.AddOrUpdate(

                "FacturarAlmuerzos",

                x => x.FacturarAlmuerzos(null),

                "0 9 L * *", //Se ejecuta el último día de cada mes a las 9 am

                 new RecurringJobOptions

                 {

                     TimeZone = TimeZoneInfo.FindSystemTimeZoneById("SA Pacific Standard Time")

                 });

I don’t believe that cron expressions in Hangfire support the “L” option (it’s not one of the standard cron options).

To run a job on the last day of each month, you generally have a couple of possible options:

  • Run it on the first day of each month (just after midnight, for example), and process the previous month’s data.
  • Or, schedule it for days “28-31” each month and, within your code for the job, check whether it is actually the last day of the month and only run the code if that’s true.