In 1777, the Continental Congress passed the first official Thanksgiving Day proclamation. In 1817, New York proclaimed a day of Thanksgiving, soon followed by many other states. Abraham Lincoln set the day as the last Thursday in November. FDR changed it to the fourth Thursday in November in 1939 (approved by Congress in 1941).
More information is available at: