百度首页 | 百度空间
 
文章列表
 
您正在查看 "梦幻js" 分类下的文章

2008年07月18日 星期五 18:51
Description:
These functions are very useful when dealing with any type of date fields.

They use the same format strings as the java.text.SimpleDateFormat class, with a few minor exceptions.

Functions include:

  • isDate() - Check if a date is valid
  • compareDates() - See if one date is greater than another
  • formatDate() - Output a Date() object in any format
  • getDateFromFormat() - Parse a date str
类别:梦幻js | 评论(0) | 浏览()
 
2007年12月23日 星期日 21:16

首先下载 setday.js , 由于不能上传文件,故在后面贴出其内容

然后创建一个html文件,输入 :

<SCRIPT src="setday.js"></SCRIPT>

<INPUT id="starttime2" onclick="setday(this)" size="12" name="starttime">

即可方便的使用日期控件来获得YYYY-MM-DD格式的日期了

----------------------------------------------------------------------------------------------------------------------------------

类别:梦幻js | 评论(0) | 浏览()
 
     
 
 
文章分类
 
 
 
 
 
 
 
 
 
 
     
 
文章存档
 
 
 
 
 
 
 
 
 
 
 
     
 
最新文章评论
   
 

怎么了撒
 

wo de tian a ,
 

踩一下
 

有时候都在寻找这种属于自己的空间,享受这安静的一切。
加油啊!
 
     


©2008 Baidu