首页 > 代码库 > Crystal Report 处理当前系统时间
Crystal Report 处理当前系统时间
原文:Crystal Report 处理当前系统时间
Changed the print date format to HH/yy/MM/mm/SS/dd (For Example:2014/01/23 16:30:45= 161430014523) :
iif(Hour(CurrentTime)<10,left(‘0‘+totext(Hour(CurrentTime)),2),left(totext(Hour(CurrentTime)),2))+right(left(totext((Year(CurrentDate))),5),2)+iif(Minute(CurrentTime)<10,left(‘0‘+totext(Minute(CurrentTime)),2),left(totext(Minute(CurrentTime)),2))+iif(Month(CurrentDate)<10,left(‘0‘+totext(Month(CurrentDate)),2),left(totext(Month(CurrentDate)),2))+iif(Second(CurrentTime)<10,left(‘0‘+totext(Second(CurrentTime)),2),left(totext(Second(CurrentTime)),2))+iif(Day(CurrentDate)<10,left(‘0‘+totext(Day(CurrentDate)),2),left(totext(Day(CurrentDate)),2))
或者:
totext(Hour (PrintTime),"00") + mid(totext(Year (PrintDate),"0000"),3,2)+ totext(Minute (PrintTime),"00") + totext(Month (PrintDate),"00") + totext(Second (PrintTime),"00") + totext(Day (PrintDate),"00")
Crystal Report 处理当前系统时间
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。