var time ="/Date(1279270720000+0800)/";var tme1 = ChangeDateFormat(time); alert(tme1);JS方法为: function ChangeDateFormat(cellval) { var date = new Da...
分类:
Web程序 时间:
2014-06-28 17:46:58
阅读次数:
262
NSDate * date = [NSCalendarDate date]; NSLog(@"%@", date);日历在IOS里报错,,。 NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; [formatter ...
分类:
其他好文 时间:
2014-06-28 16:22:54
阅读次数:
303
windows: 安装apache,php,mysql遇到的各种问题: 1. test.php运行不起,发现是httpd.conf中忘加AddType application/x-httpd-php .php了; 2.设置好配置文件,发现会报一个date函数的关于时区的警告,把php中的da...
分类:
数据库 时间:
2014-06-28 16:07:13
阅读次数:
285
如何让视图通过某种途径,把符合日期格式的字符串放到路由中,再传递给类型为DateTime的控制器方法参数?即string→DateTime。MVC默认的ModelBinder并没有提供这样的机制,所以我们要自定义一个ModelBinder。 首先,在前台视图中,把符合日期格式的字符串赋值给date变...
分类:
Web程序 时间:
2014-06-28 15:17:24
阅读次数:
191
/* * Created by SharpDevelop. * User: Administrator * Date: 2013/11/18 * Time: 20:55 * * To change this template use Tools | Options | Coding | Edit ....
分类:
其他好文 时间:
2014-06-28 12:34:14
阅读次数:
466
1.类的定义: 在Ext项目开发中,有时会用到只选择年月的日期组件,下面的代码会帮你完成,只需向下面的类拷贝到你的项目中即可使用。Ext.define('Ext.form.field.Month', { extend:'Ext.form.field.Date', alias: 'wid...
分类:
其他好文 时间:
2014-06-28 12:00:41
阅读次数:
164
//根据传入的日期得到周末. public static int getDayOfWeek(Date date){ Calendar cal=Calendar.getInstance(); cal.setTime(date); int dayNum=0; if(cal.get(Calenda...
分类:
其他好文 时间:
2014-06-28 11:45:35
阅读次数:
217
/********************************************************************** Author : Samson* Date : 06/15/2014* Test platform:* Mint 15-3.8.13.13* GNU bas...
分类:
其他好文 时间:
2014-06-28 11:38:32
阅读次数:
316
function sleep(numberMillis) { var now = new Date(); var exitTime = now.getTime() + numberMillis; while (true) { now = new Date(); if (now.getTime() >...
分类:
其他好文 时间:
2014-06-24 10:44:55
阅读次数:
267
本文讨论4个知识点,1. fixed_date参数2. 赋权技巧3. procedure执行的方式4. PL/SQL中要注意的几个地方fixed_date参数客户想修改oracle的 系统时间做测试,但oracle的默认系统时间是读取其所在server的系统时间的,所以不能随便修改。不过可以修改fi...
分类:
数据库 时间:
2014-06-20 15:53:05
阅读次数:
233