They have known each other for two years.
They have been known to each other since two years ago.
It is/ has been two years since they knew each other.
They have known each other for two years.
They have been known to each other since two years ago.
It is/ has been two years since they knew each other.