Click here to Skip to main content
16,017,297 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a school project building a Ecommerce website. I want to put the adv at a specific time. For instance, I want a adv to be appeared on 2014-12-21 21:00:00, and the adv is supposed to show up automatically on the website. But I'm not sure how it functions. Can you please explain me the way it works or how to do it. So far I've made up the C# codes for automatically doing something at a specific time. Thank you for your help!

C#
Task.Delay(TimeSpan.FromSeconds(time)).Wait();
        dosomething();
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900