Hi All,
I need to send an email at 9 PM PST Time. How would I get the PST time . I need to check if its 9PM PST it should send the email .
Thanks
Hi All,
I need to send an email at 9 PM PST Time. How would I get the PST time . I need to check if its 9PM PST it should send the email .
Thanks
Try this:
If
TimeZoneInfo.ConvertTimeFromUtc(DateTime.UtcNow, TimeZoneInfo.FindSystemTimeZoneById("Pacific Standard Time")).Hour = 21
Then
Send email
End If
Hope it helps!!
Thank You . let me try that.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.