如何将日期转换为不同的格式?

use*_*399 -3 coldfusion

我有

<cfset DateToday = "#now()#" />
<cfdump var = "#DateToday#" /> 
Run Code Online (Sandbox Code Playgroud)

这给了我:

{ts '2014-04-28 15:37:52'}
Run Code Online (Sandbox Code Playgroud)

如何改变它以给我'2014年4月28日'?我想我必须使用转换为char?

sfl*_*che 5

试试这个

#DateTimeFormat(DateToday, "mmmm d, yyyy")#
Run Code Online (Sandbox Code Playgroud)