Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7866651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T00:27:48+00:00 2026-06-03T00:27:48+00:00

Has anyone been able to get the conditional formatting for work based on dates?

  • 0

Has anyone been able to get the conditional formatting for work based on dates?

I want to apply formatting to a list item that was created more than 7 days ago.

I have exhausted my Google searching and nothing. This is the expression that seems others have used. But it’s not working for me.

number(translate(substring-before(@Created,'T'),'-','')+7) >= 
    number(translate(substring-before($Today,'T'),'-',''))
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T00:27:50+00:00Added an answer on June 3, 2026 at 12:27 am

    I think your looking for XSL template matches;

    <xsl:variable name="dateTime" select="ddwrt:FormatDate(string(@Created), 1033, 3)" />
    <xsl:variable name="dateTimeCondensed" select="ddwrt:FormatDate(string(@Created), 1033, 2)" />
    <xsl:variable name="date"  select="substring-before(substring-after($dateTime, ', '), ', ')" />
    <xsl:variable name="month" select="substring-before($date, ' ')" />
    <xsl:variable name="day"   select="substring-after($date, ' ')" />
    <xsl:variable name="time"  select="substring-after($dateTimeCondensed, ' ')" />
    

    In the SharePoint Designer formula field, create a calculated formula on conditional formatting and associate this with the List items to be indicated as created over 7 days ago;

    =Created=+7

    Essentially you are talking “Calculated Columns” and the conditional formatting is based on XSL translations, as my list of xsl:variables describes. You might not be manually editing the XSL template but then again you may well be as what you have described in the above example appears to be XSLT.

    SharePoint Designer 2010 you can add calculated columns and formats are described on MSDN for reference.

    Hope this is of some help! 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Has anyone been able to get an NHibernate-based project up and running on a
Has anyone been able to get the Areas in ASP.NET MVC 2 to work?
Has anyone been able to get uploadify to work with codeigniter? Everything I try
Has anyone been able to get the suds soap library to work with the
Has anyone been able to get this to work? http://code.google.com/p/jquery-googlemap/ I only seem to
Has anyone been able to get p8 / table_builder https://github.com/p8/table_builder gem to work for
Has anyone been able to get subsonic objects to work in linq pad ,
Has anyone been able to get xinc to run correctly under OpenBSD's chrooted default
Has anyone been able to get a variable record length text file (CSV) into
Has anyone been able to get Windows Installer to use the InstallUISequence table during

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.