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
Solved

know the users date format

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

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.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

838 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