---
title: "Oracle 日期格式"
author: "laowood"
date: "2010-08-01T23:48:05Z"
tags: []
categories: ["数据库"]
slug: "oracle"
draft: false
lastmod: "2011-06-18T14:59:34Z"
id: 726741
url: "https://laowood.iteye.com/blog/726741"
---

```&quot;sql&quot;
to_char(sysdate,'fm YYYY-MM-DD  Q &quot; Quarter&quot; &quot; Rome &quot;RM  &quot;The&quot; WW&quot;th Week Of  this Year,&quot; W &quot;th Week Of this Month,&quot; &quot;last &quot;DD &quot; days in this Month&quot; &quot;last &quot;D&quot; days in this week &quot; DY&quot;-&gt;&quot;DAY   hh:mi:ss am')
```


```&quot;sql&quot;

```


```&quot;sql&quot;

```



![](http://www.installb.com/wp-content/uploads/2011/06/a83f102e540558454ec22626.jpg)