Quantcast
Channel: SharePoint Legacy Versions - Using SharePoint Designer, InfoPath and Other Customizations Forum
Viewing all articles
Browse latest Browse all 2319

Conditional formatting using an 60 day window from date column

$
0
0

I have read a few postings regarding my questions but I am still not sure how to modify the code for my use.

I have a date column [DateOut] that I want to use for some conditional formatting in SPD. Basically if an list item where the [Current Date] is 50 days after the [DateOut] then format. I can set the formatting just can't figure how to add/minus the 50 days against the [Current Date] or [DateOut].

eg

If [DateOut] < [Current Date] - 50 days, then format.

I have read similar articles but can't get it right.

“<xsl:if test="number(translate(@date1,'-','')) &gt; number(translate(substring-before($Today,'T'),'-',''))">your format</xsl:if>”

OR

<xsl:if test="ddwrt:FormatDateTime(string($Today), 1033, d) > ddwrt:FormatDateTime(string(@StartDate), 1033, d) + 3">

Here is my current ADV code without the 50 day offset

ddwrt:DateTimeTick(ddwrt:GenDisplayName(string($thisNode/@DateOut))) < ddwrt:DateTimeTick(ddwrt:GenDisplayName(string($Today)))
If someone can help either with the code that goes into the page or what to put into the Advanced Conditioning window would be great.

Stunpals - Disclaimer: This posting is provided "AS IS" with no warranties.



Viewing all articles
Browse latest Browse all 2319

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>