What are the symptoms of type 2 diabetes and how long could you have it before you realized?

I have read that in type 2 diabetes, the symptoms can be virtually non-existent, so how can you tell?