Use printDate() in main()