Click here to Skip to main content
       

C / C++ / MFC

 
AnswerRe: ParseExact - parsing a date with a given format in C++ / MFC PinmemberJochen Arndt18-Jul-12 2:27 
AnswerRe: ParseExact - parsing a date with a given format in C++ / MFC PinmvpRichard MacCutchan18-Jul-12 3:20 
GeneralRe: ParseExact - parsing a date with a given format in C++ / MFC [modified] PinmemberBadJerry18-Jul-12 3:32 
AnswerRe: ParseExact - parsing a date with a given format in C++ / MFC PinmemberTopCoder2318-Jul-12 4:54 
Richard pointed out using strftime( ) . it is standard C.
 
#include <cstdio>
#include <ctime>
 
 
int main ()
{
  time_t rawtime;
  struct tm * timeinfo;
  char buffer [80];
  
  time ( &rawtime );
  timeinfo = localtime ( &rawtime );
 
  strftime (buffer,80,"%Y %m %d  ",timeinfo);
 
  puts (buffer);
 
  return 0;
}

GeneralRe: ParseExact - parsing a date with a given format in C++ / MFC PinmemberBadJerry18-Jul-12 5:41 
GeneralRe: ParseExact - parsing a date with a given format in C++ / MFC PinmvpRichard MacCutchan18-Jul-12 7:39 
GeneralRe: ParseExact - parsing a date with a given format in C++ / MFC Pinmemberjschell20-Jul-12 7:28 
GeneralRe: ParseExact - parsing a date with a given format in C++ / MFC PinmvpRichard MacCutchan20-Jul-12 9:21 
GeneralRe: ParseExact - parsing a date with a given format in C++ / MFC PinmemberTopCoder2318-Jul-12 21:12 
AnswerRe: ParseExact - parsing a date with a given format in C++ / MFC Pinmemberkrmed18-Jul-12 10:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web03 | 2.8.140421.2 | Last Updated 24 Apr 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid