Jump to content
Sign in to follow this  

Logic Help

Recommended Posts


Hi everyone,

I need the community help again. I have been able to do lots of my scripting, by finding different samples on this forum. Now I am having problem with some basic logic and not sure how to write it as script.

Here is what I am looking to do.

I am writing a script which checks my email based on certain time frame. I have created two variables OnCallStart = "7/11/2012"

OnCallEnd = "7/18/2012"

I want the script to start checking emails at OnCallStart date and at 12:00 PM till OnCallEnd date at 12:00PM. If current time is between this time, the rest of script should run, else exit

I am not sure how to script the date and time check.

Any help you can provide will be great.


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.