format_date(date, type)

参数:

date, 时间

type, 格式划类型

作用:

格式化日期成各种格式。

示例:

{$=format_date("2010-2-10 10:10:10", 2)}
返回值:2010/2/10