How to get date from message in inbox?

Login to reply to this topic.
Tue, 2006-12-05 09:48
Joined: 2006-07-21
Forum posts: 158
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   

Tue, 2006-12-05 10:13
Joined: 2006-04-19
Forum posts: 155
Re: How to get date from message in inbox?
TTime msgTime=msvEntry.iDate;

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".

Tue, 2006-12-05 10:45
Joined: 2006-07-21
Forum posts: 158
Re: How to get date from message in inbox?
Hi,
I try this method, but the value data of message not compare with the date get from this method Sad 

Thank you
Silvia
Tue, 2006-12-05 10:56
Joined: 2006-04-19
Forum posts: 155
Re: How to get date from message in inbox?


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".

Wed, 2007-04-18 04:51
Joined: 2007-02-04
Forum posts: 19
Re: How to get date from message in inbox?
I think this method only get the time when the message was receipt but no the time it was sent
  • Login to reply to this topic.