We have a requirement to create a function in pega to find the number of days between two given inputs, in which one input parameter can be either DateTime(yyyyMMddTHHmmss.SSS z) or Date (yyyyMMdd). Seems pega internally passes the BigDecimal format to the function when a strategy invokes this function, So we have to create a function which takes the Date/DateTime as BigDecimal. Can somebody help us how can we convert BigDecimal to java.util.Date (or DateTime).
***Edited by Moderator Marissa to update categories***
Thanks for this. But our requirement is to build a Java function which takes BigDecimal as input parameter. With in the Java function the BigDecimal need to be converted to Date (or DateTime), which can be used for some other calculations as per my requirement. Hope this is clear now. Please let me know do you need any other information.