Now gets date correctly.

Was using hardcoded values. Now it works.