Path: csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.030 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'subject:skip:a 10': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; 'format?': 0.16; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; 'skip:d 20': 0.34; 'received:google.com': 0.34; 'entered': 0.34; 'but': 0.36; 'subject:: ': 0.38; 'help': 0.40; 'save': 0.61 X-Received: by 10.49.75.195 with SMTP id e3mr2221065qew.24.1361488724161; Thu, 21 Feb 2013 15:18:44 -0800 (PST) Newsgroups: comp.lang.python Date: Thu, 21 Feb 2013 15:18:44 -0800 (PST) In-Reply-To: <5bac38bb-df2e-47b8-96dd-2b1c090959e4@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=94.68.75.81; posting-account=DYJQ-woAAACEPH85Au2BhUVfFTfSfVa4 References: <92536c34-cf00-4497-b646-ab79fa4ee062@googlegroups.com> <5bac38bb-df2e-47b8-96dd-2b1c090959e4@googlegroups.com> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 94.68.75.81 MIME-Version: 1.0 Subject: Re: Checking for valid date input and convert appropriately From: Ferrous Cranus To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Message-ID: Lines: 5 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1361488727 news.xs4all.nl 6852 [2001:888:2000:d::a6]:57430 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:39485 Then i try to save the date as MySQL wants but it just aint happening: date = datetime.strftime(date, '%Y-%m-%d') Can you help me please save the user entered date to MySQL format?