Hi,
Declare startdate and enddate as string datatype. from datepciker value will come as in dd-mm-yyyy format.
You can convert the datepicker format to MII XML Dateformat with the expression editor function datetoxmlformat(dateString, fromFormat).
dateString is your datepicker date like 28-12-2016.
fromFormat is your datepicker format dd-mm-yyyy.
it convert into 2016-12-28T00:00:00 .
Hi Anju,
I would second Srisailam here, to avoid glitches with Datetime, we pass strings and do conversion as per target's requirement.
We have a lot of functions to play around with date formats. Do let me know if there is any specific reason you had kept input as datetime.
Regards,
Swaroop
Add comment