Solved

know the users date format

Posted on 2011-10-29
2
205 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
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

762 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

6 Experts available now in Live!

Get 1:1 Help Now