Solved

know the users date format

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
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…

815 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now