浙江省高等学校教师教育理论培训

微信搜索“毛凌志岗前心得”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

cal=Calendar.instance
Y=cal.get(Calendar.YEAR)
M = cal.get(Calendar.MONTH) + 1
D = cal.get(Calendar.DATE)
println "$Y-$M-$D"

 

get beginning of a day

 

def now = new GregorianCalendar()
def today = new GregorianCalendar(now.get(Calendar.YEAR), now.get(Calendar.MONTH), now.get(Calendar.DAY_OF_MONTH))
date=today.getTime()
println date

 

 

http://jqueryui.com/demos/datepicker/#icon-trigger

posted on 2012-05-28 10:03  lexus  阅读(358)  评论(0编辑  收藏  举报