Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  1. Fotoware Alto
    • 11.14 Schreckhorn
    • Terminology
    • Solutions
    • User Guide - Deutsch
    • User Guide - English
    • API Changelog
  2. Fotoware Veloz
    • Managing users and groups
    • Configuring archives
    • Configuring workflows
    • Configuring site behavior
    • Navigating and searching to find your assets
    • Working with your assets
    • Editing asset metadata
    • Uploading files
    • Version Control in Fotoware
    • Albums - Creating and sharing collections
    • Placing assets in a CMS
    • Working with the Fotoware Pro interface
    • Using the Fotoware plugins
    • Consent management
    • User guide to FotoWeb for iPad (Legacy)
    • Picture conferencing with FotoWeb Screens (Legacy)
    • What's what in Fotoware
    • GDPR
    • Fotoware Veloz releases
    • Activity Exports
    • Fotoware Example Workflows
  3. Fotostation
    • Getting started with Fotostation
    • Viewing, selecting and sorting files
    • Managing your assets with archives
    • Adding metadata to assets
    • Searching for assets
    • Working with your assets
    • Version Control in Fotostation
    • Automating tasks with Actions
    • Configuring metadata fields and editors
    • Configuring Fotostation
    • Configuring Fotostation for multi-user environments
    • Troubleshooting Fotostation
  4. Fotoware Flow
    • What is Flow?
    • Getting started
    • Flow dictionary
  5. Fotoware On-Premises
    • Getting started
    • Index Manager
    • FotoWeb
    • Color Factory
    • Connect
    • Operations Center Guide
  6. Integrations and APIs
    • The Fotoware API
    • Creating integrations using embeddable widgets
    • Authorizing applications using OAuth
    • Auto-tagging
    • FotoWeb Drag and Drop export
    • Integration using webhooks
    • Optimizely and Episerver plugin documentation
    • User Interface Integrations
  7. Fotoware Mobile
    • User guide for Fotoware Mobile for iPhone and Android
    • User guide to FotoWeb for iPad (Legacy)
    • User guide to FotoWeb for iPhone and Android (Legacy)

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Support

Table of Contents

Basic Filter Properties
  • Home
  • Fotoware Alto
  • Solutions

Filter Query: Date Range Filter

12. March 2025

Elaine Foley

Table of Contents

Basic Filter Properties

Show content modified in December 2020.

// USING EXACT DATES
{
    "kind": "DateRangeFilter",
    "field": "audit.modificationDate",
    "range": { 
        "names": { 
            "fieldId.en":"Dec 2020",
            "fieldId.de":"Dez 2020"
        },
        "from": "2020-12-01T00:00:00.000",
        "to": "2020-12-31T00:00:00.000",
    }
}

Show content with a publish date in the last 30 days.

// USING DAY CALCULATIONS
{
    "kind": "DateRangeFilter",
    "field": "corporateInformation.publishDate",
    "range": { 
        "names": { 
            "fieldId.en":"Last 30 days"
            "fieldId.de":"Letzte 30 Tage"
        },
        "from": "now-30D",
        "to": "now"
    }
// USING COMBINATIONS
{
    "kind": "DateRangeFilter",
    "field": "corporateInformation.embargoDate",
    "range": { 
        "names": { 
            "fieldId.en":"Last 30 days"
            "fieldId.de":"Letzte 30 Tage"
        },
        "from": "now-30D",
        "to": "now"
    },
    { 
        "names": { 
            "fieldId.en":"Last fiscal year"
            "fieldId.de":"Last fiscal year"
        },
        "from": "2019-03-31T01:02:02.000",
        "to": "2020-03-31T01:02:02.000"
    }
}

Picturepark supports

  • Y (years), M (month), D (days), H (hours), m (minutes)
  • Calculations starting with now e.g. now+30D, now-30D
  • Anchor dates and rounding are not supported (e.g. Jun 5th + 30d; now/M for the current month)
 

Basic Filter

Only content with a date/date-time value in the specified range.

Date Format: YYYY-MM-DDTHH:MM:SS:MMM

  • Year-Month-DayTHour-Minute-Second-Millisecond
{
    "kind": "DateRangeFilter",
    "field": "fieldpath",
    "range": { 
        "names": { 
            "fieldId.en":"english text shown to the user",
            "fieldId.de":"german text shown to the user"
        },
        "from": "YYYY-MM-DDTHH:MM:SS:MMM",
        "to": "YYYY-MM-DDTHH:MM:SS:MMM",
    }
}

Properties

kind Discriminator, string, required
field The field's name to execute the filter on. It is composed of the field ids of the hierarchy joined with "." (i.e. personLayer.address.street), check DateTime field values
range If no range provided, the filter will throw an error "query execution failure" and display it as empty. 
names The translations of the ranges are nullable, language-specific range names
from it can be a date-time string or a pattern: now(+-)(int)(YMDHm).
to it can be a date-time string or a pattern: now(+-)(int)(YMDHm).

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • Display Pattern: Date Time
  • Display Pattern: File Metadata in Layer Fields
  • Display Pattern: Link to Picturepark Areas
  • Channel Filter: Show Items that have Product Layer Assigned
eco-lighthouse-miljøfyrtårn

Company

  • About us
  • Resellers
  • Careers
  • Contact us

Help & support

  • Support center
  • Consultancy
  • Tech partners
  • Fotostation
  • System status

Trust Center

  • Legal
  • Security
  • Sustainability & ESG

Locations

Fotoware AS (HQ)
Tollbugata 35
0157 OSLO
Norway
FotoWare Switzerland AG
Industriestrasse 25
5033 Buchs (AG)
Switzerland

Copyright 2025 Fotoware All rights reserved.

  • Terms of service
  • Privacy policy
  • Cookie policy

Knowledge Base Software powered by Helpjuice

Expand