By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,344 Members | 1,139 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,344 IT Pros & Developers. It's quick & easy.

WeekdayName

P: n/a
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
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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.

"simon" <si*********@stud-moderna.si> wrote in message
news:O2*************@TK2MSFTNGP11.phx.gbl...
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

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.