用format来实现
format (intTemp,"00000000")

解决方案 »

  1.   

    msgbox format ( now(),"yyyymmdd")dim i as integer
    i=6
    msgbox format ( 6,"00000000")
      

  2.   

    MsgBox Format(Now(), "YYYYmmdd")MsgBox String(10 - Len(CStr(i)), "0") & CStr(i)
    MsgBox Format(i, "0000000000")
      

  3.   

    strTemp=format(year(now),"YYYY") & format(month(now),"MM") & format(day(now),"DD")
      

  4.   

    strTemp=format(year(now),"YYYY") & format(month(now),"MM") & format(day(now),"DD")
      

  5.   

    1 如何得到日期像这样的格式"20030309",
    format(date,"yyyymmdd")
    2 如minajo21(大眼睛)所说!