Solved

know the users date format

Posted on 2011-10-29
2
215 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 500 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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

724 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