Hello All,
Currently In my source file, i am getting date and time values like below. 2010-07-06T19:06:47
i want to put date in one variable and time in another one. Please let me know how to do this.
Thanks and Regards, Kiran.
Hello All,
Currently In my source file, i am getting date and time values like below. 2010-07-06T19:06:47
i want to put date in one variable and time in another one. Please let me know how to do this.
Thanks and Regards, Kiran.
The quickest and easiest way to do this would be to split/explode the variable into 2 pieces with the date in one and the time in the other.
Assuming the combined date/time value is in variable $date-time
...
<xsl:variable name="date" select="substring-before($date-time, 'T')"/>
<xsl:variable name="time" select="substring-after($date-time, 'T')"/>