Matthew 1:1 ASV

http://www.hannahscupboard.com/ST-son-of-david.html
How could Jesus be the son of David who was born hundreds of years before him?