Humanizr / Humanizer

Humanizer meets all your .NET needs for manipulating and displaying strings, enums, dates, times, timespans, numbers and quantities
Other
8.52k stars 947 forks source link

Convert month number to text. Ex: 1 = "January" #1496

Closed Camilo716 closed 3 months ago

Camilo716 commented 3 months ago

Is there a way to convert a month number to its text equivalent using Humanizer? for example 1 = "January", 2 = "February" and so on. If not, I think it would be a good feature to add.

SimonCropp commented 3 months ago

given this is a single OOTB method call

CultureInfo.CurrentCulture.DateTimeFormat.GetMonthName(1)

i dont think it is worth adding to Humanizer

Camilo716 commented 3 months ago

I was not aware of this approach, in this case this issue can be closed. Thank you so much!

SimonCropp commented 3 months ago

glad to hear u have a way forward