Get PST Time

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 @marina.dutta

Try this:

If 
  TimeZoneInfo.ConvertTimeFromUtc(DateTime.UtcNow, TimeZoneInfo.FindSystemTimeZoneById("Pacific Standard Time")).Hour = 21 
Then
    Send email
End If

Hope it helps!!

@Parvathy

Thank You . let me try that.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.