Click here to Skip to main content
15,917,795 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ones compliment of zero Pin
CPallini21-Sep-08 21:49
mveCPallini21-Sep-08 21:49 
GeneralRe: ones compliment of zero Pin
enhzflep21-Sep-08 21:37
enhzflep21-Sep-08 21:37 
QuestionChange Date format Pin
manju#12321-Sep-08 20:29
manju#12321-Sep-08 20:29 
AnswerRe: Change Date format Pin
Cedric Moonen21-Sep-08 20:35
Cedric Moonen21-Sep-08 20:35 
AnswerRe: Change Date format Pin
_AnsHUMAN_ 21-Sep-08 20:36
_AnsHUMAN_ 21-Sep-08 20:36 
AnswerRe: Change Date format Pin
enhzflep21-Sep-08 20:45
enhzflep21-Sep-08 20:45 
AnswerRe: Change Date format Pin
Sandeep Saini SRE22-Sep-08 1:24
Sandeep Saini SRE22-Sep-08 1:24 
AnswerRe: Change Date format Pin
David Crow22-Sep-08 3:29
David Crow22-Sep-08 3:29 
manju#123 wrote:
I am trying with the below code but i am getting the system time..


No surprise there since you are explicitly using sysTime members.

manju#123 wrote:
can anyone help me


Yes. To get your yyyy/mm/dd format, use:

Datee.Format("%04d/%02d/%02d", sysTime.wYear, sysTime.wMonth, sysTime.wDay);
Now if you are actually wanting to use the date in the Date variable, try:

CString Date = "12/05/2008";
COleDateTime dt;
dt.ParseDateTime(Date);
CString Datee = dt.Format("%Y/%m/%d");


"Love people and use things, not love things and use people." - Unknown

"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch


Questionvariable reflection in class Pin
SeshaSridhar21-Sep-08 20:29
SeshaSridhar21-Sep-08 20:29 
AnswerRe: variable reflection in class Pin
_AnsHUMAN_ 21-Sep-08 20:38
_AnsHUMAN_ 21-Sep-08 20:38 
GeneralRe: variable reflection in class Pin
SeshaSridhar21-Sep-08 20:56
SeshaSridhar21-Sep-08 20:56 
QuestionUsing MySQl with VC++ Pin
tony_Udz21-Sep-08 20:27
tony_Udz21-Sep-08 20:27 
AnswerRe: Using MySQl with VC++ Pin
Rajesh R Subramanian21-Sep-08 20:41
professionalRajesh R Subramanian21-Sep-08 20:41 
AnswerRe: Using MySQl with VC++ Pin
nguyenbinh0721-Sep-08 22:01
nguyenbinh0721-Sep-08 22:01 
AnswerRe: Using MySQl with VC++ Pin
Sandeep Saini SRE22-Sep-08 1:33
Sandeep Saini SRE22-Sep-08 1:33 
GeneralRe: Using MySQl with VC++ Pin
tony_Udz22-Sep-08 2:20
tony_Udz22-Sep-08 2:20 
GeneralRe: Using MySQl with VC++ Pin
Sandeep Saini SRE22-Sep-08 17:16
Sandeep Saini SRE22-Sep-08 17:16 
QuestionBad Ptr Pin
T.RATHA KRISHNAN21-Sep-08 20:18
T.RATHA KRISHNAN21-Sep-08 20:18 
AnswerRe: Bad Ptr Pin
Member 553230521-Sep-08 21:06
Member 553230521-Sep-08 21:06 
GeneralRe: Bad Ptr Pin
T.RATHA KRISHNAN21-Sep-08 21:12
T.RATHA KRISHNAN21-Sep-08 21:12 
QuestionRe: Bad Ptr Pin
Mark Salsbery22-Sep-08 5:45
Mark Salsbery22-Sep-08 5:45 
QuestionWarnings when compiling the unicode resource file Pin
Taruni21-Sep-08 19:36
Taruni21-Sep-08 19:36 
QuestionArray Pin
john563221-Sep-08 19:25
john563221-Sep-08 19:25 
AnswerRe: Array [modified] Pin
enhzflep21-Sep-08 19:51
enhzflep21-Sep-08 19:51 
QuestionHow to a webserver in VC++ Pin
tns_ranjith21-Sep-08 19:19
tns_ranjith21-Sep-08 19:19 

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

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