Re: DATETIMEPATTERN

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Karunakararao (karunakararaop_at_i-vantage.com)
Date: 10/05/04


Date: Tue, 5 Oct 2004 12:47:22 +0530

Here Iam using in ASP.NET Web application
Here it is not taking the these settings
I want Format of like "MM/dd/yyyy"
Regards
Venu

"Ansil MCAD" <AnsilMCAD@discussions.microsoft.com> wrote in message
news:9AB03EEC-2F0B-40B3-B326-7A33D56354D1@microsoft.com...
> hi
> may be this can solve your problem
> http://www.codeproject.com/dotnet/datetimeformat.asp
> regards
> ansil
>
> "Karunakararao" wrote:
>
>> Hi all
>> How can i get the "Short Date Format" from regional and language
>> options
>> Like "MM/dd/yyyy"
>> how can get this type of format based regional settings;
>> I wnat to show this format in web application.
>>
>> Iam using this code
>> Label1.Text = CultureInfo.CurrentCulture.DateTimeFormat.ShortDatePattern;
>> Iam getting this output ="M/d/yyyy";
>>
>> When ever chage the regional optional settings It's not changing when i
>> was
>> used this code.
>>
>>
>> Regards
>> Venu
>>
>>
>>
>>
>>



Relevant Pages

  • Re: How to suppress autotext US date format after typing current y
    ... The date drop down merely reflects the language at the cursor ... American designed template to be truly UK English. ... I have all the usual settings corrected to ... the date format Word forces on you is ...
    (microsoft.public.word.docmanagement)
  • Re: Data Format on SharePoint pages - how to set
    ... \par So far, for customzing the date display format in list column, there are some solution that use a calculated column to display the customized date format. ... \par There is no setting on either the site or personal SharePoint Regional ... \par Settings for specifically setting the date format, ... \par> **Open the site on which you want to configure your regional settings. ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: Data Format on SharePoint pages - how to set
    ... I'm not interested in changing how dates are displayed in custom lists, but rather the default date format for the all pages that are automatically created by SharePoint - e.g. the Shared Documents page. ... The user might choose to override some of the values associated with the current culture of Windows through Regional and Language Options (or Regional Options or Regional Settings) in Control Panel. ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: Inserting regional settings specific data into sql server
    ... Italianyou will observe that the settings used are 10/02/2006 ... it a better idea to Format it using the string format functions or a very ... into the sql database.Sorry to bug the shorts off you but u now have context ... By using the parameters, while the program is in the right culture setting, ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Data Format on SharePoint pages - how to set
    ... There is no setting on either the site or personal SharePoint Regional Settings for specifically setting the date format, ...
    (microsoft.public.sharepoint.windowsservices)