From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: Convert from date to week number, howto? Date: Thu, 02 Feb 2012 22:32:03 +0530 Message-ID: <81mx91qid0.fsf@gmail.com> References: <87liol1a8z.fsf@iro.umontreal.ca> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:38083) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rt03S-0004lW-CX for emacs-orgmode@gnu.org; Thu, 02 Feb 2012 12:02:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rt03J-0006GE-VR for emacs-orgmode@gnu.org; Thu, 02 Feb 2012 12:02:38 -0500 Received: from mail-pz0-f41.google.com ([209.85.210.41]:57859) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rt03J-0006G4-Ow for emacs-orgmode@gnu.org; Thu, 02 Feb 2012 12:02:29 -0500 Received: by dadv6 with SMTP id v6so2273014dad.0 for ; Thu, 02 Feb 2012 09:02:28 -0800 (PST) In-Reply-To: <87liol1a8z.fsf@iro.umontreal.ca> (=?utf-8?Q?=22Fran=C3=A7ois?= Pinard"'s message of "Thu, 02 Feb 2012 11:16:28 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?utf-8?Q?Fran=C3=A7ois?= Pinard Cc: emacs-orgmode@gnu.org > I sometimes have to convert from a date to a week number, Try this. (org-odt-format-date "<2011-12-31 Sat>" "%U") (org-odt-format-date "[2011-12-24 Sat]" "%U") You can steal the implementation. The functions have nothing to do with org-odt, btw. --