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

See if this helps.

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.

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

Hi,

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

Mark your thread as solved. :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.