| Devart.Data.Oracle Namespace : OracleGlobalization Class |
Manages the Oracle globalization settings of the application, and local computer. Oracle globalization settings of the local computer are read-only.
For a list of all members of this type, see OracleGlobalization members.
Devart.Data.Oracle.OracleGlobalization
[Visual Basic]
Public Class OracleGlobalization [C#]
public class OracleGlobalization The following example changes the date format of application.
[C#]
public void ChangeDateFormat(){
// Get application's globalization info
OracleGlobalization glob = OracleGlobalization.GetApplicationInfo();
// Prints "glob.DateFormat = DD.MM.YYYY"
Console.WriteLine("glob.DateFormat = " + glob.DateFormat);
// Set date format on application's globalization info
glob.DateFormat = "MM.DD.YYYY";
OracleGlobalization.SetApplicationInfo(glob);
OracleGlobalization.GetApplicationInfo(glob);
// Prints "glob.DateFormat = MM.DD.YYYY"
Console.WriteLine("glob.DateFormat = " + glob.DateFormat);
} [Visual Basic]
Public Sub ChangeDateFormat()
' Get application's globalization info
Dim glob As OracleGlobalization = OracleGlobalization.GetApplicationInfo()
' Prints "glob.DateFormat = DD.MM.YYYY"
Console.WriteLine("glob.DateFormat = " + glob.DateFormat)
' Set date format on application's globalization info
glob.DateFormat = "MM.DD.YYYY"
OracleGlobalization.SetApplicationInfo(glob)
OracleGlobalization.GetApplicationInfo(glob)
' Prints "glob.DateFormat = MM.DD.YYYY"
Console.WriteLine("glob.DateFormat = " + glob.DateFormat)
End Sub 'ChangeDateFormatOracleGlobalization Members | Devart.Data.Oracle Namespace
© 2002 - 2013 Devart. All Rights Reserved.