?
Solved

know the users date format

Posted on 2011-10-29
2
Medium Priority
?
216 Views
Last Modified: 2012-05-12
How do i establish the user computer's date format in vb.net
0
Comment
Question by:Anthony Matovu
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 9

Expert Comment

by:djon2003
ID: 37051725
As far as I know, the only to go is with a javascript client side script.

So here is a site explaining you how to do that.

http://stackoverflow.com/questions/274826/how-to-get-client-date-and-time-in-asp-net
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 2000 total points
ID: 37053246
Here is how to do it in code behind

Dim culture As CultureInfo = CultureInfo.CreateSpecificCulture(Request.UserLanguages(0))
Response.Write(culture.DateTimeFormat.ShortDatePattern)
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question