WeekdayName

  • Thread starter Thread starter simon
  • Start date Start date
S

simon

I use function: WeekdayName(2, False,
Microsoft.VisualBasic.FirstDayOfWeek.Monday)

and I get names in my language.

Can I set that the names are in English language?

Or I should write my own function for that?

Thank you,

Simon
 
One option is to change the current culture temporarily to Englist, get the
week day name and restore the original culture.
Eg:

Dim cur As CultureInfo = Thread.CurrentThread.CurrentCulture
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US")
' Use WeekdayName to get in US English
Thread.CurrentThread.CurrentCulture = cur

Hope this helps.

I use function: WeekdayName(2, False,
Microsoft.VisualBasic.FirstDayOfWeek.Monday)

and I get names in my language.

Can I set that the names are in English language?

Or I should write my own function for that?

Thank you,

Simon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top