The function ( QString getCreationDate() const ) doesn't return anything is it bugged or am i missing something obvious?

although there is another function that almost do the same thing but for another variable and it works like charm...
note* the compiler doesn't output any error. it just don't behave as expected!

Qt Code:
  1. //class counter (where the function is defined)
  2. Counter( QString name,int start = 0,bool firstTime = true,QDate CreationTime = QDate::currentDate())
  3. :
  4. ClickTimes(start),
  5. name(name),
  6. firstTime(firstTime),
  7. lastDate(QDate::currentDate()),
  8. CreationTime(CreationTime)
  9. {}
  10.  
  11. QString getDate() const
  12. {
  13. return lastDate.toString("dd/MM/yyyy"); //this one works perfectly
  14. }
  15.  
  16. QString getCreationDate() const
  17. {
  18. return CreationTime.toString("dd/MM/yyyy"); //this one don't
  19. }
  20. /*---------------------------------------------------------*/
  21. //MainWindow.cpp
  22.  
  23. //here is where the adding (creating the counter happens)
  24. void MainWindow::addItemToList()
  25. {
  26. QString text2 = ui->inputBox_2->text();
  27.  
  28. //setting the model (some deleted code just to be on point)
  29.  
  30. //model properties (some deleted code just to be on point)
  31.  
  32. //adding to the model (some deleted code just to be on point)
  33.  
  34. //setting the counter
  35. pCounters.push_back(Counter(text2,0,true));
  36. ui->inputBox_2->clear();
  37. }
  38. /*---------------------------------------------------------*/
  39. //this is where it get called
  40.  
  41. void MainWindow::SaveFile()
  42. {
  43. QFile Save("streak Counter.txt");
  44. Save.open(QIODevice::WriteOnly|QIODevice::Text);
  45.  
  46. for(auto i = pCounters.begin();i != pCounters.end();i++)
  47. {
  48. QTextStream out(&Save);
  49. if(i->isVirigin())
  50. {
  51. out << i->getName() << ',' << "virigin" << ',' << i->getCreationDate() << endl; //getCreationDate() doesn't work!
  52.  
  53. }
  54. else
  55. {
  56. int counterNumber = i->getNumber();
  57. out << i->getName() << ',' << QString::number(counterNumber)<< ',' << i->getDate() << ',' << i->getCreationDate() <<"\n";
  58. }
  59. }
  60. Save.close();
  61. }
To copy to clipboard, switch view to plain text mode 

//output file (example)

thing1,virigin,

or

thing2,3,22/2/2016,

i hope that someone may pass by and help me... as no one did In StackOverflow.. and i really can't figure out whats the problem.