954,541 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Current Culture in vb.net

I am working vb.net application vs 2005,I am using culture ("ja-JP") japan in my application but i need to display date in this format("dd-MMM-yyyy") how to change it?

Thanks

laks_samy
Light Poster
33 posts since Oct 2008
Reputation Points: 8
Solved Threads: 0
 

See if this helps.

codeorder
Posting Virtuoso
1,915 posts since Aug 2010
Reputation Points: 255
Solved Threads: 384
 
I am working vb.net application vs 2005,I am using culture ("ja-JP") japan in my application but i need to display date in this format("dd-MMM-yyyy") how to change it? Thanks

Hi,

You can try something like this:

Label1.Text = Date.Now.ToString("dd/MMM/yyyy", CultureInfo.CreateSpecificCulture("ja-JP"))


I couldn't tested it, because I haven't a japanese font on my PC.

Luc001
Posting Whiz
376 posts since Mar 2010
Reputation Points: 85
Solved Threads: 98
 

Hi,

You can try something like this:

Label1.Text = Date.Now.ToString("dd/MMM/yyyy", CultureInfo.CreateSpecificCulture("ja-JP"))

I couldn't tested it, because I haven't a japanese font on my PC.


Thanks

i solved my problem

laks_samy
Light Poster
33 posts since Oct 2008
Reputation Points: 8
Solved Threads: 0
 

Hi,

Was my answer correct, because I couldn't tested it?

Mark your thread as solved. :)

Luc001
Posting Whiz
376 posts since Mar 2010
Reputation Points: 85
Solved Threads: 98
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: