You're querying the wrong functions and misunderstanding the output.
getDay()
returns the day of the week.
getMonth()
returns the month, but January starts with 0.
getYear()
returns the year minus 1900
You are probably looking for:
getDate()
, getMonth()+1
, getFullYear()