on 2017 Feb 14 10:18 AM
Request clarification before answering.
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 .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.