# How to get description from CRON Expression and viceversa in Hangfire natively?

**URL:** <https://discuss.hangfire.io/t/how-to-get-description-from-cron-expression-and-viceversa-in-hangfire-natively/7910>\
**Category:** feature\
**Tags:** aspnetcore\
**Created:** [October 28, 2020, 4:01am UTC](https://discuss.hangfire.io/t/how-to-get-description-from-cron-expression-and-viceversa-in-hangfire-natively/7910 "2020-10-28T04:01:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nhsonet](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/nhsonet/32/2292_2.png) [@nhsonet](https://discuss.hangfire.io/u/nhsonet)\
**Post date:** [October 28, 2020, 4:01am UTC](https://discuss.hangfire.io/t/how-to-get-description-from-cron-expression-and-viceversa-in-hangfire-natively/7910/1 "2020-10-28T04:01:14Z")

</div>

I have implemented Hangfire in an [ASP.NET](http://ASP.NET) Core application for sending email(s) as per defined schedule(s). I am creating schedule(s) (CRON expression) and receiving email(s) in the application via different Web API(s) and then sending the email(s) as per scheduled times/ intervals.

I couldn’t find anything in Hangfire to get the description from CRON expression and also to get CRON expression from description/ interval natively. However, I found two nuget packages:

- **CronExpressionDescriptor** : which gets description from CRON expression.
- **CronEspresso** : which gets CRON expression from description/ interval.

I have implemented both and it is working as expected.

## My code sample:

```
using CronExpressionDescriptor;
using CronEspresso.NETCore;
...
...
string cronExpression = "* 5 * * * *"; //every 5 minutes
var cronDescription = ExpressionDescriptor.GetDescription(cronExpression);
string cronExpressionAgain = CronGenerator.GenerateMinutesCronExpression(5);

```

I came to know Hangfire utilizes **NCrontab**. So, is there any way to achieve above functionalities natively to remove external dependency.
