Insert the second part into DoneDate dlrBuilder

Post Reply
jesripurba
Posts: 4
Joined: Mon Jul 19, 2021 3:10 am

Insert the second part into DoneDate dlrBuilder

Post by jesripurba » Wed Jan 19, 2022 11:03 pm

Hi,
When creating delivery report with dlrBulder, SMPP Server sent to client like :

{id:86053867 submit date:2201200528 done date:2201200528 stat:UNDELIV err:000 text:}

submit date dan done date, was sent with short date time, without the second part.

It is possible to insert the second part into done date, like:

{id:86053867 submit date:220120052822 done date:220120052822 stat:UNDELIV err:000 text:}

var dlrBuilder = SMS.ForDeliver()
.From(data.DestinationAddress)
.To(data.SourceAddress)
.Receipt(new Receipt
{
DoneDate = Convert.ToDateTime ( sentTime),
State = msgStatus, //.Delivered,
MessageId = smsID,
ErrorCode = "0",
SubmitDate = DateTime.Now,


Thank You,
Jesri
alt
Site Admin
Posts: 955
Joined: Tue Apr 25, 2006 9:45 am

Re: Insert the second part into DoneDate dlrBuilder

Post by alt » Thu Jan 20, 2022 5:02 pm

Hi

The date and time format is defined in the SMPP protocol specification.
Screenshot 2022-01-20 175937.png
Screenshot 2022-01-20 175937.png (65.59 KiB) Viewed 488 times
Post Reply