Humanizr / Humanizer

Humanizer meets all your .NET needs for manipulating and displaying strings, enums, dates, times, timespans, numbers and quantities

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Camilo716 opened this issue · comments

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.

given this is a single OOTB method call

CultureInfo.CurrentCulture.DateTimeFormat.GetMonthName(1)

i dont think it is worth adding to Humanizer

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

glad to hear u have a way forward