how to format date when i load data from google-app-engine..
        Posted  
        
            by zjm1126
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by zjm1126
        
        
        
        Published on 2010-05-19T02:21:37Z
        Indexed on 
            2010/05/19
            2:40 UTC
        
        
        Read the original article
        Hit count: 376
        
i use remote_api to load data from google-app-engine.
appcfg.py download_data --config_file=helloworld/GreetingLoad.py --filename=a.csv  --kind=Greeting helloworld
the setting is:
class AlbumExporter(bulkloader.Exporter):
    def __init__(self):
        bulkloader.Exporter.__init__(self, 'Greeting',
                                     [('author', str, None),
                                      ('content', str, None),
                                      ('date', str, None),
                                     ])
exporters = [AlbumExporter]
and i download a.csv is :
the date is not readable ,
and the date in appspot.com admin is :
so how to get the full date ??
thanks
i change this :
class AlbumExporter(bulkloader.Exporter):
    def __init__(self):
        bulkloader.Exporter.__init__(self, 'Greeting',
                                     [('author', str, None),
                                      ('content', str, None),
                                      ('date', lambda x: datetime.datetime.strptime(x, '%m/%d/%Y').date(), None),
                                     ])
exporters = [AlbumExporter]
but the error is :
© Stack Overflow or respective owner