您正在查看 "梦幻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
|
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格式的日期了
----------------------------------------------------------------------------------------------------------------------------------
以 |
|
|