1 Reply Latest reply: Jan 21, 2013 4:44 PM by vladodias RSS

    Issue converting String to DateTime to subtract 1 Day duration  in XSLT


      I need to subtract 1 Day duration from the input date which is in format "yyyy-mm-ddT00:00:00"( data type=String)
      I tried using the available function: subtract-dayTimeDuration-from-dateTime() But, this function expects input as datatype datetime and hence on using this I am getting Null as the result of the transformation.

      I have used dateTime() to convert the input string but it doesnt seem to be working as i get error "Invalid Xpath expression(null).

      Please help in identifying anyother way i can convert the String into dateTime format and hence subtract the duration. Or some other way of subtracting the duration of 1 day from string itself.

      Thanks for the help!