Can I make GetSetting return a Date ? Seems to be a string only.
Your instr example replies on "," being present which it may not.
This might be okay
Code:
SaveSetting "B2", "Import", "LastBatch", Year(Date) & "," & Month(Date) & "," & Day(Date)
MySettings = Split(GetSetting(appname:="B2", Section:="Import", Key:="LastBatch"), ",")
lbDate = DateSerial(MySettings(0), MySettings(1), MySettings(2))
Or using CSTR of large number representing the date, converting to/from it. (once I find how to do that!)