Welcome to Squishdot Squishdot How-To Newbies
 about
 search
 post article
 Documentation
 Mailing Lists
 Bug Tracking
 Development
 Installation
 Upgrading
 Download
 admin
 rdf

 main


Change date format
How-To Posted by elayeillon on Wednesday January 09, 12:19PM, 2002
from the dept.
I want to display the date w/ the French format: DD/MM/YYYY and NOT MM/DD/YYYY Could anyone help me ? Thxs

<  |  >

 

Related Links
  • Articles on How-To
  • Also by elayeillon
  • Contact author
  • The Fine Print: The following comments are owned by whoever posted them.
    ( Reply )

    Re: Change date format
    by Chris Withers on Thursday January 10, 09:10AM, 2002
    You probably need to be a little bit more specific about where you want to change it.

    However, you probably want: <dtml-var "date_posted('%d/%m/%Y')">

    cheers,

    Chris

    [ Reply to this ]
    • Re: Change date format
      by elayeillon on Thursday January 10, 04:23PM, 2002
      Thank you Chris... but it does not work.

      This does not change the date, and displays on the page.

      Please visit the page where it is: http://freezope2.nipltd.net/zope/News/1010605266/index_html

      Thxs Regards

      E
      [ Reply to this ]
      • Re: Change date format
        by Chris Withers on Friday January 11, 06:14PM, 2002
        You should probably go by what you see on the site, not by what you get in the email ;-)

        Chris
        [ Reply to this ]
        • yes but ...
          by elayeillon on Friday January 11, 06:51PM, 2002

          You're right, Chris, but i have trouble to find info on the website www.nipltd.com

          Anyway, thank you for your help. I sure i will have to ask you more questions, in order to make my new website work, and promote your free hosting !!!!!

          Best regards

          E


          [ Reply to this ]
    Re: Change date format
    by Lillian Gassie on Friday January 11, 01:12AM, 2002
    Try this one. It works, just tested it.
    [ Reply to this ]
    • Re: Change date format
      by Lillian Gassie on Friday January 11, 01:14AM, 2002
      Sorry, forgot to change from HTML to text.

      Here it is

      <dtml-var "date_posted(fmstr='%d/%m/%Y')">
      [ Reply to this ]
      • Re: Change date format
        by elayeillon on Friday January 11, 02:10PM, 2002
        <u>PERFECT, GREAT !!!</u>
        <br><br>
        Thank you very much to everyone who helped me.
        [ Reply to this ]
    Re: Change date format
    by Pieter Biemond on Friday January 11, 10:12AM, 2002
    Add the following lines to Squishdot.py:
    import locale
    locale.setlocale(locale.LC_TIME,'french')
    
    [ Reply to this ]
    Re: Change date format
    by Michael Haenicke on Monday January 14, 07:55AM, 2002
    Hi! I take it, as if you want to change the Zope internal time to the european version for that you should use this! %A stands for the day of the week %d for the Day %m for the Month %y for the Year if you want to enclude the time you can format it like this: %H for the hour %M for the minute %S for the seconds Now you can play around with that! Good Luck! Mike
    [ Reply to this ]
    • Re: Change date format
      by Michael Haenicke on Monday January 14, 07:58AM, 2002
      Opps there must be a mistake my part of code is gone so this is the second try! $$ dtml-var ZopeTime fmt="%A %d.%m.%Y - %H:%M" $$ Use everything within the four dollar signs! Combine both postings and you should get what you want! Sorry about that! Mike
      [ Reply to this ]

     
    The Fine Print: The following comments are owned by whoever posted them.
    ( Reply )

    Powered by Zope  Squishdot Powered
      "Any system that depends on reliability is unreliable." -- Nogg's Postulate
    All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest ©1999 Butch Landingin, ©2000-2002 Chris Withers.