09 2014 档案
摘要:Learn From:http://blog.csdn.net/maggiehexu/article/details/6387636方法一:public String getPercent(int x,int total){ String result = "";//接受百分比的值 doub...
阅读全文
摘要:Learn From:http://my.oschina.net/hermer/blog/151274 /** * 测试 * @param args */ public static void main(String[] args) { // 定义输...
阅读全文
摘要:Learn From:http://blog.csdn.net/sunhuwh/article/details/39161323public class CalendarTest { public static void main(String[] args) { // 获取当前...
阅读全文
摘要:Learn From: http://blog.csdn.net/morley_wang/article/details/7859922 strstr(string,search) strstr() 函数搜索一个字符串在另一个字符串中的第一次出现。 该函数返回字符串的其余部分(从匹配点)。如果未找到
阅读全文
摘要:Learn From :http://www.jxbh.cn/newshow.asp?id=1635&tag=2//1.获取上个月第一天及最后一天. date('Y-m-01', strtotime('-1 month')); date('Y-m-t', strtotime('-1 mont...
阅读全文
摘要:Learn From : http://bjtdeyx.iteye.com/blog/1447300 最常见的sql日期查询的语句 --查询当天日期在一周年的数据 select * from ShopOrder where datediff(week,ordTime,getdate()-1)=0 -
阅读全文