English 中文(简体)
甲骨质和NET的时间/格式
原标题:TimeZone Time/Date Formats with Oracle and .NET

我对Oracle说了新话,希望有人能够向我澄清这一设想。

我已写出一个非常大的问询,即把一系列的日期交还给我(Oracle 10g)。

这些日期见DD-MON-YY格式(ex:12-MAY-12)。 制图员的实地数据类型显示,数据类型是日期类型,而简单的无线电台是检查的。 当我把这个问题投入到Kalk开发公司时,我获得这样的日期:

11-MAY-12

我在属于C#网络服务的大会中使用这一询问。 在我们的近海小组中,我们的QE服务器被接纳后发现,外地价值正被转换成一个IST被抵消(它用GetXml转换为数据Set)。 确实如此,我甚至知道那笔被抵消的钱,直到我检查了一次挖尸检验中的产出,因为我可以把它看在SQDC中。 它接手了:

2012-05-11T06:09:15+05:30

没有使用固有的日期转换功能,而只是抽出日期的外地名称。

How can I modify my query so that the offset coming over (we do need to preserve the time portion of the Date) is not taken into consideration when the query is run? I know the question sounds convoluted, but the end result is data being written to another database overseas contains the wrong offset, so it s being converted to dates that are off by 1 day.

基本上,我需要时间,但不要被抵消。

最佳回答

甲骨文<代码>DATE有一天和时间组成部分,但无时间区。 缩略语

页: 1 日数据按几种不同方式转换成显示体。 首先,它使用一个明确的<代码>。 TO_CHAR

SELECT to_char( <<your_date_column>>,  YYYY-MM-DD HH24:MI:SS  )
  FROM your_table

第二,您可修改<代码>。 NLS_DATE_FORMAT ,使本届会议始终以特定格式显示数据

ALTER SESSION SET nls_date_format =  yyyy-mm-dd hh24:mi:ss ;
SELECT <<your_date_column>>
  FROM your_table

第三,在开发商中,你可以改变其使用的舱面格式,以显示<代码>D数据。 请上<代码>。 工具 Field。 如果您从DD-MON-RR改为YYYYY-MM-DD H24:MI:SS,你将因违约而损失一天和时间。

问题回答

暂无回答




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签