To use month name based on Month no

Hii Team

Can we set the months accordingly based on month no we have can we set for 1 to 12 month

enero, febrero, marzo, abril, mayo, junio, julio, agosto, septiembre, octubre, noviembre, diciembre

Example month received 01
Then set Month_name= Enero

@NISHITHA

create a dictionary

pass the key,values like this

new dictionary(of int32,string) from {{1,“enero”}}

like this

you can call the output with

image

Hi @NISHITHA

How about the following?

monthNumber=3
monthName=New Date(Year(Date.Now), monthNumber, 1).ToString("MMMM", New System.Globalization.CultureInfo("es-ES"))

Hope this helps!!

@NISHITHA

If given month is 1

1 Like

Thanks @Shiva_Nikhil and @lrtetala for the prompt response

2 Likes

We can work directly on the cultureinfo provided month name array

grafik

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.