InterviewSolution
| 1. |
How Can You Assign The Current Value Of A Date Or Time Field By Using The Oracle Bpel Xpath Function Getcurrentdate, Getcurrenttime, Or Getcurrentdatetime ? |
|
Answer» You can assign the current VALUE of a date or time field by using the Oracle BPEL XPath function getCurrentDate, getCurrentTime, or getCurrentDateTime, respectively. In addition, if you have a date-time value in the standard XSD FORMAT, you can convert it to characters more suitable for output by calling the Oracle BPEL XPath function formatDate. In the next EXAMPLE, the formatDate function converts the date-time value provided in XSD format to the string 'Jun 10, 2005' (and assigns it to the string field formattedDate). You can assign the current value of a date or time field by using the Oracle BPEL XPath function getCurrentDate, getCurrentTime, or getCurrentDateTime, respectively. In addition, if you have a date-time value in the standard XSD format, you can convert it to characters more suitable for output by calling the Oracle BPEL XPath function formatDate. In the next example, the formatDate function converts the date-time value provided in XSD format to the string 'Jun 10, 2005' (and assigns it to the string field formattedDate). |
|