when was the declaration of independence written?

when was the declaration of independence written?