DataView Web Part ddwrt Date formatting


I was looking to find different date formatting options in a Data View Web Part for MOSS 2007. Luckily I found this blog which lists all the date formatting options available

http://sharethelearning.blogspot.com/2007/05/formatflag-in-ddwrtformatdate-method.html

To format a date in the Data View Web Part the ddwrt namespace is used

<xsl:value-of select=”ddwrt:FormatDate(string(@DailySalesDate),1033, 5) />

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: