How to manipulate the pieces of a DateTime field?

Which is the best way to define a specific date and time to an entitiy field in a business rule? For example: After some calculations I end up with a date and time. Let's say: "31/01/2013 18:30:00" as a string format. Then, I want to put this value in a field of type DateTime.Another question is: can I set just a piece of the DateTime information? For example, I wanna change just the hour, minutes or seconds of a field. How can I code that?


Dear Adriel

Concerning your question we recommend to use the date time field, if you want, you can store only the year, month or day into a variable as show in the following article:

As a new user,we encourage to visit our web site, where you can find documentation, videos and e-learning material to begin a project with Bizagi Studio, you can find this at Discover Bizagi

best regards

Luis Emilio