You cannot buy TM18 (Rain Dance) in any shop in Pokémon Platinum. It's obtained only by:
Unlike earlier generations, Platinum does not sell TMs in Poké Marts or department stores—they're exclusively field items or rewards. Check Route 212 (near Pastoria City) or the Great Marsh for hidden items.