I want sunny day so that my whimsicott can learn it.for solar beam.
You buy it in Mistralton City's pokemart for $50,000 Poke-dollars.
The other TMs you can buy are:
TM18 (Rain Dance)
You can buy it from the bottom clerk in the Mistralton city Pokemon centre