I wish to provide a default value for a DateTime variable. However, if I include the value within brackets (like I do for other arrays), it shows me an error message.
Does anybody know how to sort this out?
I wish to provide a default value for a DateTime variable. However, if I include the value within brackets (like I do for other arrays), it shows me an error message.
Does anybody know how to sort this out?
Provide default values within convert.todatetime
{Convert.toDateTime(“2018-09-17”)}
just place it inside “2018-09-17” and convert it to datetime
You can use {DateTime.Parse("2018-09-17")}
An array of datetimes can be done as {(new datetime(2018,9,17))}
In your example, the dateTimeVar would be new datetime(2018,9,17). The array would then be {dateTimeVar}
Thanks everybody for your timely help
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.