bluestone

Learning without thinking leads to confusion;thinking without learning leads to danger.

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: :: :: 管理 ::

2012年1月31日

摘要: /*获得两个日期之差 */ public static function getDateDiff(startDate:Date, endDate:Date):int { var diff:Number = (Number(endDate) - Number(startDate))/(3600000*24); return diff; } /* 获得现在日期 */ public static function getDate():Number { return new Date(); } /* 获得现在日期的月份 */ public static function getMonth():Numb 阅读全文
posted @ 2012-01-31 10:43 ssatyr 阅读(318) 评论(0) 推荐(0)