Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting the current Date from the server

Status
Not open for further replies.

MahalKoCjet

Programmer
Mar 5, 2003
12
0
0
PH
Hi gurus,

How could I get the current Date from the server?


Tenyks in advance

 
I'm not sure if this helps... you can get the time from the os by using this:

#include <math.h>
#include <conio.h>
#include <iomanip>
#include <fstream>
#include <iostream>
#include <string>
#include <stdio.h>
#include <vector>
#include <stdlib.h>
#include <assert.h>
#include <time.h>
using namespace std;

void main()
{
char tmpbuf[128];
cout << &quot;Time: &quot; << _strtime( tmpbuf ) << endl;
cout << &quot;Date: &quot; << _strdate( tmpbuf ) << endl;
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top