又发生了这样的错误。表象总是那么扑朔迷离。 有客户说文件上传服务不能用了。错误提示的是服务器错误。但是其他机器可以,说明服务本身并没有大问题,或者说错误的发生,源于客户端环境的不一样。得出结论并没有什么不妥。 关键在于客户端什么环境有问题?这是一个非常有意思的过程。 先简单说明一下,文件上传服务发布了一个地址 http://myServer/upload.aspx, 在Post的时候,将
推荐 原创 2011-07-06 00:00:00
1363阅读
1点赞
1评论
procedure TForm1.Button1Click(Sender: TObject);var ADate: String; ADate2: TDate; AFormat, AFormat2: TFormatSettings;begin AFormat.ShortDateFormat := 'ee/mm/dd'; AFormat.DateSeparator := '/'; ADate := '94/05/15'; ADate2 := StrToDate( ADate, AFormat ); AFormat2.ShortDateFormat
转载 2011-08-01 11:23:00
227阅读
2评论
使用POI导出Excel,文件名中文乱码:String fileName = "_费率-" + DateUtil.DateToStr(new Date());res
[code="java"][/code] public class Date_String { /** * 日期转换成字符串 */ public static String DateToStr(Date date) { SimpleDateFormat sdf = setupFormat("yyyy-MM-dd"); St
转载 2023-05-22 13:17:45
107阅读
在DELPHI下读取与设置系统时钟 很多朋友都想在自己的程序中显示系统时间 这在DELPHI中十分容易 利用DateToStr(Date)及TimeToStr(Time)函数即可实现。 二者的函数原型如下: functionDateToStr(Date:TDateTime):string; functionTimeToStr(Time:TDateTime):string; 其返回值均为String型。 在程序中我们可以这样使用: Label1.Caption:=DateToStr(Date); Lable2.Caption:=TimeToStr(Time); 二者分别调用了D... Read More
转载 2013-08-05 19:43:00
200阅读
TDateTime类型与字符串型转换函数: DateTimeToStr 函数: DateToStr 函数 TimeToStr函数 定义:function DateTimeToStr(DateTime: TDateTime): string;       function TimeToStr(Time: TDateTime): string; f
转载 2007-12-05 11:11:41
3580阅读
StringReplace函数的用法示例:   比如将日期和时间中间的“-”和“:”去掉   Label1.Caption :=StringReplace(datetostr(date),'-','',[rfReplaceAll]);   Label2.Caption :=StringReplace(timetostr(time),':','',[rfRe
原创 2010-01-22 00:17:40
1258阅读
DateTimeToFileDate 函数 将DELPHI的日期格式转换为DOS的日期格式 DateTimeToStr 函数 将日期时间格式转换为字符串 DateTimeToString 函数 将日期时间格式转换为字符串 DateToStr 函数 将日期格式转换为字符串 FileDateToDate Read More
转载 2016-03-30 20:45:00
81阅读
2评论
/** * 将某个日期以固定格式转化成字符串 * * @param date * @return String */ public static String dateToStr(java.util.Date date) { SimpleDateFormat sdf = newSimpleDateFormat("yyyy-MM-dd HH:mm:ss"); String str
日期转字符串//日期转字符串格式 function DateToStr(date) { var year = date.getFullYear();//年 var month = date.getMonth();//月 var day = date.getDate();//日 var hours = date.getHours();//时 var
转载 2023-06-06 14:28:50
602阅读
1.给定一个java.util.Date对象,如何转化为”2007-3-22 20:23:22”格式的字符串 /** *将某个日期以固定格式转化成字符串 *@paramdate *@returnstr */ public String dateToStr(java.util.Date date) { SimpleDateFo