How to get date from message in inbox?
| Tue, 2006-12-05 09:48 | |
|
Hi ,
I need to get date from message. I use This method: TTime time1; time1 = msvEntry.iDate; _LIT(KOra,"%:0%J%:1%T%:3"); time1.FormatL(RecipientOra,KOra); // hour:minute _LIT(KData,"%D%M%*Y%/0%1%/1%2%/2%3%/3"); time1.FormatL(RecipientData,KData); // "02/01/02" But the date is some strange. Can you help? Thanks Silvia |
|






Forum posts: 155
TDateTime msgDateTime = msgTime.DateTime();
TBuf<50> timeBuf ;
timeBuf.Format(KTimeDateFormat ,msgDateTime.Hour(),msgDateTime.Minute(),msgDateTime.Second(),msgDateTime.Day(),msgDateTime.Month(),msgDateTime.Year());
_LIT (KTimeDateFormat, "%d:%d:%d %d/%d/%d");
Thanks&Regards
Isha
"To the question of your life , you are the only Answer. To the problems of your life,you are the only Solution".
Forum posts: 158
I try this method, but the value data of message not compare with the date get from this method
Thank you
Silvia
Forum posts: 155
Hi
But me is getting the same value as the message have .Pls try again .
What exactly you are getting?
"To the question of your life , you are the only Answer. To the problems of your life,you are the only Solution".
Forum posts: 19