Hi ,
How can i specify the time zone for the Email Job Submit request in API call ?
Ex: I want to schedule a job which need to send an Email next month ( assume Dec 17th 10.00 AM IST )
Let me know how can specify this type of zones with the request?
The element that is used to set the scheduled time of a job is:
JobSubmitRequest -> Message -> JobOptions -> Delivery -> StartTime
The data type for the StartTime element is xs:dateTime, which is the standard date/time format used in XML. This format includes time zone specifications so that it explicitly sets the time when the job should be started.
You can specify the time in UTC format, or you can use an offset from UTC time as part of the value.
See http://www.w3schools.com/schema/schema_dtypes_date.asp for details on the values for xs:dateTime.
Hi,
Thank you for initial reply.
I would like to provide the schedule a job functionality like my portal schedule options.
Assume currently my application Hosted on machine with US Time Zone. I want to allow the users to select the Date,Time and Timze zone like Singapore,Canada\Pacific etc.
To schedule a job for the Singapore time zone,
1) read the values(Date ,Time) from the feidls
2) create a Date Time object with Singapore time zone
3) Conver to UTC format or Offeset UTC Method
4) Assign to Delivery type optoins and Send to API
can you confirm about this ?
Thanks & Regards
Vijay Kashetty
Yes, the above should work. As long as you properly convert the time to UTC and indicate it properly in the input, the job will be delivered at the desired time.
Hi Can you send me the Date value format(XML output) which the API will use to schedule functionality?
Want to send SMS\Email Dec 24 th 10:30 AM CST?
What is the Date format API will expect for this value ?
As indicated above, the date format comforms to the XML stadard date time format. Details are here: http://www.w3schools.com/schema/schema_dtypes_date.asp
One possible format you could use would be this:
<StartTime>2012-12-24T16:30:00Z</StartTime>
This is the time mentioned above in UTC time (the Z suffix indicates UTC/GMT time).
But you can use any format specified in the above link.