>>41331365DNS exploit OR the more legitimate way that I personally prefer. If you have a flashcart (Acekard, R4 etc.) find the Liberty Pass distribution rom. You do need 2 DSs of any kind.
Basically the one you use to send it needs to be set to a date during that distribution period, i.e. sometime in 2010 (holy fuck it's been a while). The one you're going to receive on can be any date, 2099 if you want.
Anyway you just go into Mystery Gift and receive it through local wireless. Then you go into a pokemon centre and a guy gives you the pass... Enjoy
I do this for most of my event Pokemon. Used to have a bunch of physical distribution carts but sold them years ago, was pretty great sending my friends these Pokemon semi-legally.