#include <iostream>
      #include <ctime>
      
      time_t t = time(NULL);
      tm* timePtr = localtime(&t);
      cout << "weekday = " << (timePtr->tm_wday )<< endl;
      
      Cpp language logo

      Get current weekday

      0

      0

      avatar
      Giovanny Gongora
      Codiga's C++ Recipes

      Display the current weekday

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.