5 Replies Latest reply on Jul 5, 2006 6:02 AM by Applied CD

    creating a clock

    Level 7
      Hi,

      I want to have the clock (time and date) on screen

      I have used: (the long time) and (the long date)
      'long time' is good because it gives seconds
      'long date' is half way what i want. Instead of 'Tuesday, 4 July 2006',
      I'd like 'Tue, 4 Jul 06". So, a 3 letter shortened name for day and
      month. is tehre any way to do this?

      Thanks in advance

        • 1. Re: creating a clock
          Level 7
          Sorry, the answer was not all that hard to find. Well, was easy only after
          posting. I see there is:
          'the abbr date' which give me what I want


          • 2. Re: creating a clock
            Level 7
            Dave wrote:
            > Sorry, the answer was not all that hard to find. Well, was easy only
            > after posting. I see there is:
            > 'the abbr date' which give me what I want

            It only uses the user settings from the computer (which they really should
            document), so if you change that you'll get something different.

            The only reliable way without an xtra is to use "the systemDate" and process
            that. Use google groups on this ng to find the day-of-week from the date. If
            you happen to be using the buddyAPI xtra, there's a function in that that'll
            format a date the way you want it.

            Andrew


            • 3. Re: creating a clock
              Level 7
              Andrew Morton wrote:

              > It only uses the user settings from the computer (which they really should
              > document), so if you change that you'll get something different.

              Thanks for that Andrew. How could the user settings change the way it works?
              Could you get say:
              Tue, 4 Jul 2006 - on one computer and
              4 Jul 2006, Tue - on another ?



              • 4. Re: creating a clock
                Level 7
                Dave wrote:
                > Andrew Morton wrote:
                >
                >> It only uses the user settings from the computer (which they really
                >> should document), so if you change that you'll get something
                >> different.
                >
                > Thanks for that Andrew. How could the user settings change the way it
                > works? Could you get say:
                > Tue, 4 Jul 2006 - on one computer and
                > 4 Jul 2006, Tue - on another ?

                Yes, it could. To see it, change your short date format in whatever control
                panel it's hidden in. (WS2003: control panel->Regional and Language
                Options->Regional options tab->Customize...->Date tab]

                Andrew


                • 5. Re: creating a clock
                  Applied CD Level 1
                  Dave,

                  I asked a similar question about getting a standard date object. You might find the replies interesting. Ultimately I used BuddyAPI but there are other ways. BTW ... you can use 1 function from BuddyAPI for free so if that's all you need you should be good to go, however, BuddyAPI is an amazingly useful tool, well worth the $$.

                  http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=187&threadid=1163862&hi ghlight_key=y&keyword1=date%20object