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")
时间: 2024-10-20 07:01:00