Je suis looking for a way to save a search that includes a relative date. Specifically Je suis looking for a way to save a search that matches fichiers that have a modification date that is **7 days ago**.
J'ai read the [Windows Search Advanced Query Syntax](http://www.microsoft.com/windows/products/winfamily/desktopsearch/technicalresources/advquery.mspx) document and Je sun'est pas seeing a way to say 7 days ago.
The [numbers and ranges](http://www.microsoft.com/windows/products/winfamily/desktopsearch/technicalresources/advquery.mspx#E1E) section does mention that relative dates are possible. The problème is that the relative dates described there ne pas fit the criteria I need. The **lastweek** almost looks like what I want except si je run a query like `after:lastweek` on a Monday it will seulement show my fichier that ont été modified depuis Sunday at 12:00. The lastweek/lastmonth seem to relative vers le start du week/month which n'est pas what I need.
>
Multi-word relative dates: week, next
month, last week, past month, or
coming year. The valeurs can également be
entered contracted, as follows:
thisweek, nextmonth, lastweek,
pastmonth, comingyear.
One nice thing about saved searches is that they are stored as an XML document and the fichier format is [documented](http://msdn.microsoft.com/en-us/library/bb892885(VS.85).aspx). Je sun'est pas seeing comment form a correct valeur for a datetime. If J'étais able to understand this format, Je soupçonne I could use a text editor and créé a saved search that does what I want.
Fragment depuis le [examples](http://msdn.microsoft.com/en-us/library/bb892885(VS.85).aspx#savedsearch_examples):
```
```
To summarize Je suis looking for an answer to one or both duse questions
- Comment puis-je make a query for '7 days ago' using the standard syntax?
- How is the DateTime stored in a saved search?
Recherche for fichiers après a relative date using Windows recherche
Revenir à « Performance & Dépannage »
Aller
- Windows Client
- ↳ Windows 11
- ↳ Performance & Dépannage
- ↳ Personnalisation Windows
- ↳ Installation & Activation
- ↳ Réseau & Internet
- ↳ Mises à jour
- ↳ Démarrage & Récupération
- ↳ Périphériques & Pilotes
- ↳ Windows 10
- Windows Server & IT Pro
- ↳ Active Directory & Entra
- ↳ Windows Server 2025
- ↳ Hyper-V & Virtualisation
- ↳ Windows Server (anciennes versions)
- ↳ WSUS & Patch Tuesday
- Microsoft 365 & Office
- ↳ Excel & VBA
- ↳ Outlook & Exchange
- ↳ OneDrive & SharePoint
- ↳ Microsoft Teams
- ↳ Word & PowerPoint
- ↳ Microsoft 365 Général
- ↳ Outlook
- ↳ Microsoft To Do
- ↳ Word
- ↳ OneDrive
- Copilot & Intelligence Artificielle
- ↳ Copilot Windows
- ↳ Azure OpenAI
- Azure & Cloud Microsoft
- ↳ Azure Débutant
- ↳ Azure DevOps
- ↳ Power Platform
- ↳ Azure Infrastructure
- ↳ Entra ID & Sécurité
- Sécurité & Compte Microsoft
- ↳ BitLocker & Chiffrement
- ↳ Compte piraté / bloqué
- ↳ Microsoft Defender
- ↳ Virus & Malwares
- ↳ Comptes & Authentification
- ↳ Authentification & MFA
- ↳ Administration Sécurité
- ↳ Azure & Entra
- Xbox & Gaming Microsoft
- ↳ Xbox Console
- Surface, Matériel & Copilot+ PC
- ↳ Pilotes & Périphériques
- ↳ Surface & Appareils
- Développement & Outils Pro
- ↳ PowerShell
- ↳ GitHub Copilot
- ↳ SQL Server
- ↳ .NET & C#
- ↳ Visual Studio & VS Code
- Tutoriels & Guides
- ↳ Articles & Blog