Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Is there any function return the short date format on the regional and Language Options under control panel?

Reply
Thread Tools

Is there any function return the short date format on the regional and Language Options under control panel?

 
 
ABC
Guest
Posts: n/a
 
      04-12-2006
Is there any function return the short date format on the regional and
Language Options under control panel?


 
Reply With Quote
 
 
 
 
Patrick.O.Ige
Guest
Posts: n/a
 
      04-12-2006
DateTime t = DateTime.Now;
Time.Text = String.Format("{0:T}", t);
Date.Text = String.Format("{0:d}", t);
That should give you:
time is: 12:14:52 PM
date is: 04/14/2006

Is that what you want?
Patrick

"ABC" <(E-Mail Removed)> wrote in message
news:O2kr1%(E-Mail Removed)...
> Is there any function return the short date format on the regional and
> Language Options under control panel?
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Regional and language options missing from control panel? Wish I was using Lotus Notes Windows 64bit 5 07-07-2010 03:35 AM
OptionParser - no short options or incomplete options Bryan Richardson Ruby 6 02-25-2008 03:22 AM
Change in Short Date format under Hebrew Regional Settings Laurence Neville ASP General 1 12-15-2004 08:25 PM
Re: Setting date format, regional settings for ASP.NET Phil Winstanley [Microsoft MVP ASP.NET] ASP .Net 0 06-15-2004 08:15 AM
Setting date format, regional settings for ASP.NET =?Utf-8?B?RGF2aWQgTGVlIEFV?= ASP .Net 0 06-15-2004 02:53 AM



Advertisments