How do you get the mystery gift from the natinal dex in Pokemon Diamond?

wifi/ internet connection