This question already has an answer here:

I am writing a contract where I am storing the date/time using 'now' and performing date/time checks on those stored values.

My questions is how do you prevent date/time manipulation from miners?

If it cannot be prevented how do contracts even use date/time for critical checks?

marked as duplicate by Richard Horrocks, Community Jul 30 '16 at 20:06

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.