May 5, 2005 #1 abs2003 MIS Aug 31, 2004 80 US Hi all, How can format my date as mm/dd/yyyy in XSLT? My SQL Server's datetime field contains "5/3/2005 2:48:41 PM". My XSLT code Code: <xsl:value-of select="StartDate"/> . My output: "2005-05-03T14:48:41.0000000-04:00" which looks weird. Help please, abs
Hi all, How can format my date as mm/dd/yyyy in XSLT? My SQL Server's datetime field contains "5/3/2005 2:48:41 PM". My XSLT code Code: <xsl:value-of select="StartDate"/> . My output: "2005-05-03T14:48:41.0000000-04:00" which looks weird. Help please, abs
May 6, 2005 1 #3 simonchristieis Programmer Jan 10, 2002 1,144 GB assuming you are using for xml explicit within your sql to create the xml why not just convert on the sql server ? convert(varchar(10),dStartDate,103) ? Upvote 0 Downvote
assuming you are using for xml explicit within your sql to create the xml why not just convert on the sql server ? convert(varchar(10),dStartDate,103) ?
May 6, 2005 1 #4 JontyMC Programmer Nov 26, 2001 1,276 GB Or use: Code: <xsl:value-of select="concat(substring(StartDate,6,2),'/',substring(StartDate,9,2),'/',substring(StartDate,1,4))"/> Jon "There are 10 types of people in the world... those who understand binary and those who don't. Upvote 0 Downvote
Or use: Code: <xsl:value-of select="concat(substring(StartDate,6,2),'/',substring(StartDate,9,2),'/',substring(StartDate,1,4))"/> Jon "There are 10 types of people in the world... those who understand binary and those who don't.