REM REM 日付(本日)を取得 REM 取得する文字列は、8文字。(YYYYMMDD) REM (一桁の場合、最初に 0 を代入して、月・日ともに必ず二桁にする。) REM Dim DayIs Dim temp DayIs = Year(Now) temp = Month(Now) If Int(temp) < 10 Then temp = "0" & temp End If DayIs = DayIs & temp temp = Day(Now) If Int(temp) < 10 Then temp = "0" & temp End If DayIs = DayIs & temp |
REM REM 日付(本日)を取得 REM 取得する文字列は、8文字。(YYYYMMDD) REM (一桁の場合、最初に 0 を代入して、月・日ともに必ず二桁にする。) REM Dim DayIs Dim temp DayIs = Year(Now-1) temp = Month(Now-1) If Int(temp) < 10 Then temp = "0" & temp End If DayIs = DayIs & temp temp = Day(Now-1) If Int(temp) < 10 Then temp = "0" & temp End If DayIs = DayIs & temp |