Solved

Sydney Is Building an Application with XSLT 2

Question 65

Multiple Choice

Sydney is building an application with XSLT 2.0 that relies on many date formats and calculations. He comes to you for some assistance in developing these formats and calculations correctly.
-One section of the new application requires Sydney to add 2 years and 6 months to the current date. Which of the following expressions do you tell him will provide the correct result?


A) current-date() + xs:yearMonthDuration('p2y6m')
B) current-date() + xs:yearMonthDuration('PY2M6')
C) current-date() + xs:yearMonthDuration('P2Y6M')
D) current-date() + xs:yearMonthDuration('py2m6')

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents