From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Diogo Ramos Newsgroups: gmane.emacs.help Subject: Re: Picking a date using M-x calendar UI from elisp Date: Tue, 21 Jul 2015 15:05:41 -0300 Message-ID: <87oaj5v11m.fsf@example.com> References: <871tg1wpl6.fsf@example.com> <87io9dfl9f.fsf@yale.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1437502002 25353 80.91.229.3 (21 Jul 2015 18:06:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Jul 2015 18:06:42 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: jorge.alfaro-murillo@yale.edu (Jorge A. Alfaro-Murillo) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 21 20:06:34 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZHbw2-0001pD-Ky for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Jul 2015 20:06:34 +0200 Original-Received: from localhost ([::1]:60597 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHbw1-00080N-Qz for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Jul 2015 14:06:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46099) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHbvr-0007zy-30 for help-gnu-emacs@gnu.org; Tue, 21 Jul 2015 14:06:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZHbvm-00046K-3Y for help-gnu-emacs@gnu.org; Tue, 21 Jul 2015 14:06:23 -0400 Original-Received: from mx1.riseup.net ([198.252.153.129]:37773) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHbvl-000464-R3 for help-gnu-emacs@gnu.org; Tue, 21 Jul 2015 14:06:18 -0400 Original-Received: from berryeater.riseup.net (berryeater-pn.riseup.net [10.0.1.120]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id 6CB1141AC4; Tue, 21 Jul 2015 18:06:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1437501977; bh=JntRciTXhYOObIQTthgCNTCe8MZF2kI6X0MW8Iy/tq8=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=MnYFAPNjtKWBml5EjAmSIvBMdsxkpvvIU4KW4m4g7KeUOEZIazqSRpct1V3iS9Ayj Z7T0T8vazd+Y+ItA7tFx8fY7PPBB/Msw0GdoGdItXJn+dvdVSSl/8HSCC3fPuKWLoT ta2JyDP1PH9yHXd62ABuDpXA91giRkytvQqmoKt4= Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: dfsr) with ESMTPSA id A2B0540045 In-Reply-To: <87io9dfl9f.fsf@yale.edu> (Jorge A. Alfaro-Murillo's message of "Tue, 21 Jul 2015 13:55:40 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-Virus-Scanned: clamav-milter 0.98.7 at mx1 X-Virus-Status: Clean X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 198.252.153.129 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:105905 Archived-At: >> Is it possible to use the M-x calendar UI from elisp to let the >> user pick a date? > > You could use org built-in functions: > > #+BEGIN_SRC emacs-lisp > (format-time-string "%Y-%m-%d" (org-time-string-to-time > (org-read-date))) > #+END_SRC Ah, nice. Thank you.