Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 9D2EF200B25 for ; Wed, 8 Jun 2016 22:08:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9C2FF160A2E; Wed, 8 Jun 2016 20:08:14 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E529B160A0E for ; Wed, 8 Jun 2016 22:08:13 +0200 (CEST) Received: (qmail 95542 invoked by uid 500); 8 Jun 2016 20:08:08 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 95530 invoked by uid 99); 8 Jun 2016 20:08:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jun 2016 20:08:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 5D465180581 for ; Wed, 8 Jun 2016 20:08:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.189 X-Spam-Level: * X-Spam-Status: No, score=1.189 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, T_REMOTE_IMAGE=0.01] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=modernizingmedicine.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id dGmIXGDI_aSf for ; Wed, 8 Jun 2016 20:08:05 +0000 (UTC) Received: from mail-vk0-f51.google.com (mail-vk0-f51.google.com [209.85.213.51]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 9BD9A5F472 for ; Wed, 8 Jun 2016 20:08:04 +0000 (UTC) Received: by mail-vk0-f51.google.com with SMTP id g67so26825881vkb.3 for ; Wed, 08 Jun 2016 13:08:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=modernizingmedicine.com; s=modernizingmedicine; h=mime-version:from:date:message-id:subject:to; bh=T+Ci4Mar2bi5hy03K5yoraRQwySt5w2Qt+sJHsuzIik=; b=ARF7Iy6QTAIjUjK08Ww3abOFPHyfqv6u0AjuE6uVL3PcqmqFKHaLfVqjvG733JQzR3 RoQwp433TNn/6jYMAZmaFV4pwO9c1/XnxSuxgeyBooqsRsKBKEfWnLvY2LoI3lIFIKh1 VwUylRW6yvVn+31hgO9Dr9+BaG51GPG0AR6d4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=T+Ci4Mar2bi5hy03K5yoraRQwySt5w2Qt+sJHsuzIik=; b=Wu1jG3BIa86pprYYmMwdhDw3hOe9C3A+Lh7ffODFAyji56YWdr1YsVc5/22yrhq0wc 9OSIYeLnikmZ4iMmZBIUXsmWY8xlLkrQo+bf69TKXmUEZ0oSaFZxABIXEEFhSFCJRfg+ GXDTeT5eI9A62JQSGcm9le/byFTNXfHZ1xhaAa1GaOOUhX0dWwkUN0l8QI6Q1jDXvuVw oHC0nl7Ypq0KrVdqgvliI//DDXH4T/zB8HambUByn8FabknYeqv03P5nGUNBpspXDcFK X+BRfpjsbvbbG1lDUNBoQYsI72tbkzvTzAaXPSQaJ4BquSHdSvNMGZKfAEj3u+f5VdEA /9dg== X-Gm-Message-State: ALyK8tKTH4kezODajsAv7zwx0qBc3lxXe0waFAUIABKxuwwT54CNLJaHDo9DXYAAyRWN/nWy6RDwxdOT///C5K+V X-Received: by 10.176.2.151 with SMTP id 23mr669073uah.63.1465416483485; Wed, 08 Jun 2016 13:08:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.21.195 with HTTP; Wed, 8 Jun 2016 13:07:44 -0700 (PDT) From: Frank Herrmann Date: Wed, 8 Jun 2016 16:07:44 -0400 Message-ID: Subject: Ordering by date on a timestamp field To: user@cayenne.apache.org Content-Type: multipart/alternative; boundary=001a113d0fc8f254770534c9dc93 archived-at: Wed, 08 Jun 2016 20:08:14 -0000 --001a113d0fc8f254770534c9dc93 Content-Type: text/plain; charset=UTF-8 Hello all, Is there a way in Cayenne, when adding an ordering to a query, to order by only the date portion of a timestamp (including time) field? Basically, the timestamp includes hour, minutes, seconds, etc. I only want to sort on the date portion (month, day, year), or any other such criteria. The reason for this is, if we include other fields to sort by, we would want the second sort field to group on the date, not the full timestamp. Thanks, -Frank -- FRANK HERRMANN SOFTWARE ENGINEER T: 561-880-2998 x1563 E: frank.herrmann@modmed.com [image: [ Modernizing Medicine ]] [image: [ Facebook ]] [image: [ LinkedIn ]] [image: [ YouTube ]] [image: [ Twitter ]] [image: [ Blog ]] [image: [ Instagram ]] --001a113d0fc8f254770534c9dc93--