Question

Using datetime parameter in business process

Hi,

I am creating a business process and I have a code that requires to use a parameter of type "date/time". When I try to access this value from code, I have an error:

var DueDate = Getdatetime>("DueDate");

I tried with datetime, date, Date, Date_Time, and some other combinations, and it keeps saying that it doesn't reconize that type. Does anyone know what value type should I use for date/time?

Thanks.

File attachments

Like

2 comments

Hi Rommel,

If you need to use a parameter of  the date and time type, it should be DateTime. Please try to use DateTime in your code and in case it won't be accepted, please send us a screenshot of the error you receive and a part of your code so that we can get a detailed description of the issue.

Best regards,

Lily

Hi Lily..

I changed to "DateTime" and it's working now... thanks. 

Show all comments