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

 main


Change date format
How-To Posted by 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

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

Re: Change date format
by 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:

cheers,

Chris

[ Reply to this ]
  • Re: Change date format
    by 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 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 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 on Friday January 11, 01:12AM, 2002
Try this one. It works, just tested it.
[ Reply to this ]
  • Re: Change date format
    by on Friday January 11, 01:14AM, 2002
    Sorry, forgot to change from HTML to text.

    Here it is


    [ Reply to this ]
    • Re: Change date format
      by on Friday January 11, 02:10PM, 2002
      PERFECT, GREAT !!!



      Thank you very much to everyone who helped me.
      [ Reply to this ]
Re: Change date format
by 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 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 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 , ©2000-2002 .