zava
Elite Observer

SearchService and Date fields

Jump to solution

Hi Community,

how can I use SearchService to search content with a specified date in a datefield...?

    PatternClause online = new PatternClause("ptValidTo", "XXXXXXXXXXXXX");

thanks

best regards

antonio


0 Kudos
1 Solution

Accepted Solutions
jan-tilo
I'm new here

Hi Antonio,

the format of date is yyyy_MM_dd_HH_mm.

Additionally be aware that date/time is stored in GMT.

So if you want to search for a date without time, set hour and minute to 0 and set the time zone to GMT.

Kind regards

Jan Tilo

View solution in original post

0 Kudos
2 Replies
jan-tilo
I'm new here

Hi Antonio,

the format of date is yyyy_MM_dd_HH_mm.

Additionally be aware that date/time is stored in GMT.

So if you want to search for a date without time, set hour and minute to 0 and set the time zone to GMT.

Kind regards

Jan Tilo

0 Kudos

Hi Jan Tilo,

great Smiley Happy thanks a lot

best regards

antonio

0 Kudos