Hi
am extracting some range of mails based on date. however, am not getting all mails
01-Dec-24 to 15-Dec-24. I cant hardcode the date as range can vary.
for 01 dec mails after midnight to 05am are not retrieved and for15 dec after 11am are not output in file.
am extracting some range of mails based on date. however, am not getting all mails
01-Dec-24 to 15-Dec-24. I cant hardcode the date as range can vary.
for 01 dec mails after midnight to 05am are not retrieved and for15 dec after 11am are not output in file.
VBA Code:
startdate = Format(DateAdd("h", -myUTC, _
CDate("01/" & Month(themonthyear) & "/" & Year(themonthyear) & " 00:00:00 AM")), "'m/d/yyyy hh:mm:ss AM/PM'")
enddate = Format(DateAdd("h", -myUTC, _
CDate(DateSerial(Year(themonthyear), Month(themonthyear) + 1, 0) & " 23:59:59 PM")), "'m/d/yyyy hh:mm:ss AM/PM'")