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); }
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 'ChangeDateFormat
System.Object
Devart.Data.Oracle.OracleGlobalization
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2