Display a changing date on a webpage

Hello everyone,
Hope your sunday is great. Here there is more snow again so good time to work on the site.
Does anyone know of a way to have a date change everyday on the site. Is it possible with an html code in the snippet?
Thanks for you input.
Mireille

There is a miscalculation in the previous script where less than 9 is made into two digits, but 9 is a single digit. So, here is a correct and more lively version:
<div style="color: #888888;" id="DT"> </div>
<script type="text/javascript">
var weekday=new Array(7);
weekday[0]="Sunday";
weekday[1]="Monday";
weekday[2]="Tuesday";
weekday[3]="Wednesday";
weekday[4]="Thursday";
weekday[5]="Friday";
weekday[6]="Saturday";
function updateDT() {
var today = new Date();
MDY = (1 + today.getMonth()) + '-' + today.getDate() + "-" + (1900 + today.getYear()) ;
HR = today.getHours();
if (HR <= 9) { HR = "0" + HR }
MIN = today.getMinutes();
if (MIN <= 9) {MIN = "0" + MIN}
SEC = today.getSeconds();
if (SEC <= 9) { SEC = "0" + SEC }
document.getElementById("DT").innerHTML = (weekday[today.getDay()] + " " + MDY + " " + HR + ":" + MIN + ":" + SEC);
tick = setInterval('updateDT()', 1000);
</script>

Similar Messages

  • How to display the change data    in configruation profile for material

    dear export :
      i want to know  when  the  dependencies of material is deleted  and is added in confirgruation profile for material ,but i donnt know how to disaply the change data .
    please help me .
    best regards.

    Hi
    I don't know if the material document is managed by change document, after posting it any data can be changed in material document.
    Max

  • Display constantly changing data

    This has got to be an easy one I hope. I am collecting SO data from an IC in hex format at a fairly quick rate. I want to show 20 or 30 at a time with the data constantly scrolling down and disposing the old so I only show the last 20 or 30 results
    at any time. I tried this but it wasn't even close to what I want.
    For i As Integer = 0 To multiLineCount - 1
    Dim listitem As New ListViewItem(SO_Array(i))
    ListViewHistory.Items.Add(listitem)
    Next
    Dick Hutchings

    Hello Dick,
    If targeting Framework 4.5 the following is a simple example which shows adding items and then keeping the items to a count of 20. If not targeting Framework 4.5 then remove the Async and Await as they are there simply to slow things down. I picked 30 as
    a number so we can easily see the results rather than selecting a higher number, both low or high the logic works the same.
    Private Async Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    For x As Integer = 0 To 30
    ListViewHistory.Items.Add(New ListViewItem(x.ToString))
    Await Task.Delay(500)
    If ListViewHistory.Items.Count > 20 Then
    For y As Integer = 0 To ListViewHistory.Items.Count - 1
    ListViewHistory.Items.RemoveAt(0)
    If ListViewHistory.Items.Count = 20 Then
    Exit For
    End If
    Next
    End If
    Next
    End Sub
    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.

  • Displayed changed data without refresh

    Dear Expert,
    I am using CL_ALV_GRID to let the user input some code in one filed then the it's text display in another field automatically.But I meet a problem , to display the changed data I have to use method 'refresh'. This method will refresh all the data, but user only want to display the changed data.
    Is there any way to realize this kind of requirement ?

    Hi expert,
    Here data will be displayed on layout.After displaying the data first we need to modify the record after that selected that record
    and press the CUSTOME REFRESH button only selected row is changed  in internal table after that using set_table_for_fist_display using that method wt ever the modified the data in itab that data will display.
    claSS lcl_event_receiver IMPLEMENTATION.
      METHOD handle_toolbar.
    MOVE 'REFRESH' TO ls_toolbar-function.
        MOVE icon_refresh  TO ls_toolbar-icon.
        MOVE 'REFRESH SCREEN'(140) TO ls_toolbar-quickinfo.
       MOVE 'DELETE DATA'(120) TO ls_toolbar-quickinfo.
        MOVE 'REFRESH'(140) TO ls_toolbar-text.
        MOVE ' ' TO ls_toolbar-disabled.
        APPEND ls_toolbar TO e_object->mt_toolbar.
        CLEAR ls_toolbar.
    ENDMETHOD.
    ENDCLASS.
    METHOD handle_user_command.
      CASE e_ucomm.
        WHEN 'REFRESH'.
          CALL METHOD r_grid->get_selected_rows
              IMPORTING
                 ET_INDEX_ROWS =
                 et_row_no     = it_rows.
          LOOP AT it_rows INTO wa_rows.
    MODIFY DBTAB FROM TABLE ITAB INDEX WA_ROWS-INDEX.
    ENDLOOP.
    CALL METHOD r_grid->set_table_for_first_display
            EXPORTING
              is_layout       = gs_layout "&see below
            CHANGING
              it_fieldcatalog = gt_fieldcat
              it_outtab       = ITAB.
    ENDMETHOD.
    STARTOFSELECTION.
    CREATE OBJECT r_container
        EXPORTING
          container_name              = 'CONTAINER_1'
    CREATE OBJECT r_grid
        EXPORTING
          i_parent          = r_container
    SET HANDLER event_receiver1->handle_user_command FOR r_grid.
      SET HANDLER event_receiver1->handle_toolbar FOR r_grid.
    Regards
    MURALII

  • How to get change date in Production Order ?

    Dear Friends,
    I want to know it, how to get change date in Production Order "Administration-TAB".
    F1-Help, It is displayed with "Change date for Order Master". and Structure table "CAUFVD".
    But, CAUFVD is not Transp. Table.
    Which table should I read ?
    Thanks in advance
    Yamazaki-H

    Dear Friend
    Thank you for an answer.
    It was settled.
    Best regards.

  • Report to display material master data changes

    Hi,
    Is there a standard report available to display all changes to material master data over a specified time frame i.e all changes made alst week,all chnages made today.
    Please suggest.
    Thanks in advance.

    Hi!
    Appart from MM04, you can also have a look at MM03 or MM02:
    1. Goto MM02 or MM03 transactions and enter the material.
    2. Select the relevant views for which you want to have the details.
         In the Bar menu follow the path Environment -> Display changes.
    Here you will get the list of changes done to the fields with Old and
    New values.
    Appart from these two tools, there is not any other report provided in the standard for this target.
    I hope this helps!
    Esther.

  • How to change date picker display format?

    Default display format is 01-JAN-09 for date picker.
    How can I change it to
    Jan 21, 2009
    Thank you.

    If you need use your format for all data pickers in your application you can set it via:
    Go to
    Shared components ->Definition->Globalization (Tab) -> Application Date Format SET to Mon DD,YYYY
    and in the item Display as set "Data Picker (use ppplication format mask)"
    If you need set format to some data picker you have to go to your data picker item and Display as set "Data Picker (use item format mask)"
    and
    Go to Source region in this item and set Format mask field Mon DD,YYYY

  • ADF Faces RichTable doesn't validate but still display changed data

    Hello,
    I think I miss something in the ADF Faces lifecycle management. Can you help me?
    In a adf faces/jsf page,
    1- I have a RichTable which DataModel is based on a List<Department> stored in a managed bean (session).
    2- I have a button "Cancel" with immediate=true partialSubmit=false (I don't use PPR) and an ActionMethod that does a few changes (not in the model) and return "success".
    When I modify a value in the table (that has some af:inputText) and click on the Cancel button, the underlying List<Department> instance isn't changed (Which I expect because of the immediate=true property!). But the table still display the changes I've typed in the page. How can I reverse the data displayed in the table to before my change in the UI (in a simple manner)? What do I miss?
    Best Regards
    Gregory

    Hi,
    immediate = true makes sure that the component is evaluated before all the other. In addition the value change event fires before the model update to give you the opportunity to prevent the update. I don't know what your managed bean code is doing, but the fact that the table has the update indicates the RC table component to work properly. Your table model isn't updated, which I don't think will be automatic. So I assume you will have to access the current selected row, get the row object and pass it to the list for an update
    Frank

  • Changed data display

    Dear Experts,
    Client would like to see the data changes in one shot, actually they made lot of changes in PRD
    by entering the user id will it display all the changed data in a single shot
    I have an idea about T585A and RPUAUD00, apart from these
    Please help me, it is urgent
    Thanks in advance

    Hi,
    RPUAUD00 is only option to view all changes as it looks for all short and long term change logs.
    Thanks,
    Ameet

  • Is there currently a way to change this back to displaying the actually date and

    New helpdesk in version 7.4 seems to have gone back to using '1 week ago', '2 months ago' time stamps for ticket comments.
    Is there currently a way to change this back to displaying the actually date and time?
    This topic first appeared in the Spiceworks Community

    New helpdesk in version 7.4 seems to have gone back to using '1 week ago', '2 months ago' time stamps for ticket comments.
    Is there currently a way to change this back to displaying the actually date and time?
    This topic first appeared in the Spiceworks Community

  • Fbl1n drilldown to details - want to change data in a field that is display

    When we use FBL1n and then we drill down to a specific transaction, we can use the menu to switch from Display to Change mode.  We are then only able to change certain fields.  We would like to activate our Pmt Meth. supl field so that we can change the data here.  Right now, that particular field is "display" only.  Is there a place in config to do this?  I looked through the Vendor Line Item config but I'm not seeing where you can activate certain fields for the "change" mode.
    Suggestions?
    Cindy

    Hi Friend,
    Go to following path.
    IMG > Financial Accounting (New) > Financial Accounting Global Settings (New) > Document > Rules for Changing Documents > Document Change Rules, Line Item
    In this option, go to New entry
    Enter the Field Name BSEG-UZAWE
    Give the Account Type K
    and Tick Possibility of changing field
    and Save it
    I hope this will solve your problem
    Regards,
    Jigar

  • I can not map field after changing data source location

    Hi
    I have a small problem that I got a report file and database from my customer, after that I setup database, open the file and change data source to my setting. but some filed can not map. The field mapping widonw does not display all field in the table. Of course I have checked the missing fields are existing in the table.
    OS:Windows7
    DB:Oracle11
    CR:XI Release 2
    Does anyone have an idea?

    hi,
    In Map Fields window, there is an option "Match Type".
    Please Unchek that option, so that you will be able to see all the fields from that table.
    Also, while mapping please verify the datatypes of source and target fields.
    Regards,
    Vamsee

  • Unable to change Date Created in Metadata

    Please help with my first post...
    Unable to change Date Created field in Metadata.
    I am a newspaper photographer sending .jpg pics with captions to my office from my iMac. They are viewed at the office on Windows PCs using SCC MediaGrid.
    When changing Date Created in Metadata Invalid Format warning appears "Format should be ISO 8601 XML compliant, that is YYYY-MM-DDThh:mm[:ss][tz] (eg 2006-07-11T13:14:30-07:00)"
    If 2009-09-26, for example, is entered then exported pictures opened up in Photoshop or shown on SCC MediaGrid do not display the date.
    To get dates to show up I first have to open a pic in Photoshop, go to File Info, enter 26/9/09 in Date Created and Save As.
    Next I have to Import this into Aperture where the Date Created shows as "20090926".
    Using Lift Metadata and Stamp Metadata the date can be transferred to other pics.
    Now when I export these pics the date does show up in Photoshop and SCC MediaGrid.
    Can Date Created be typed straight into field in Aperture?...Very important when pics go into archive on a server.
    Also if I hit Return key in a Metadata Caption, to type on the next line, both lines will appear as one with a small square in-between them when viewed on SCC MediaGrid on a Windows PC.
    Thanks in anticipation.

    Nick I don't generallt use the IPTC metadata, so I'm not sure I will be too much help.
    What version of Aperture are you using? I tried both things and I didn't have any problems with the latest version of Aperture on my Mac.
    I was able to enter a date into "Date Created" both with and without the time-zone adjustment. Can you tell us the exact string you tried to enter into the "Date Created" and exactly when you get the error? I tried to enter my time zone (eastern US) as "-5:00", but Aperture wouldn't let me enter the 5 and popped up the error message when I typed that key. I had to use "-05:00".
    As for the caption, when I hit return, Aperture ends my edit. I cannot reproduce your described behavior of actually getting a new-line into the field. I suspect your problem (although I don't know how you get to your problem) is one of the following:
    1) The IPTC standard doesn't tell if the software should use a Unix-style end-of-line (which is a line-feed), or a DOS/Windows style end-of-line (which is carriage-return followed by line-feed). Aperture may put in the Unix-style and your Windows programs don't know what to do with it.
    2) The IPTC standard does indicate the end-of-line style, but either Aperture or your other programs don't follow it.
    or
    3) IPTC Metadata doesn't actually support end-of-line, so Aperture should not allow you to enter multiple lines, but it has a bug so it does allow you to do that.
    Can you tell us where exactly you are editing the caption? I tried it in the inspector pane (on the left) in the "Metadata" tab, and then I hit the "IPTC" button at the bottom of the tab.
    nathan

  • Unable to change data source of any report

    Hello there,
    I am using the Crystal Reports Eclipse plugin. I added a datasource to Eclipse 3.3 which connects to a Oracle database using JDBC.
    Now I want to change the data source of a report. I get a popup window which displays the old data source with all tables and columns on the left side. On the right side of the window I see the name of the new data source at the top, but a list of "remove" options below it with a red cross in front (see screenshot).
    It does not matter if I want to change an existing report or a new report.
    I can create a new report with a datasource, but even when I want to change to the same datasource as already assigned to the report, I get the problem described above.
    I already followed some tips found in this forum, e.g. expanding all used tables in the data source explorer etc., but this did not help.
    I know that there was also a possibility to remove the "data source" information completely from the query (as mentioned at http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do;jsessionid=2F140BDBA03E8E97EEF1E15F84964F12?cmd=displayKC&docType=kc&externalId=c2017570&sliceId=&dialogID=13402443&stateId=1%200%2013406567), but I cannot find this option in Crystal reports for Eclipse. I see a field "qualified name" in the properties of each table of my report, but this field is read-only...

    Doesn't anyone have an answer to this problem? I would just like to change the datasource of a report. But I am not able to do so, because the only option I have in the dialog is to remove all tables.
    I just saw that the screenshot is missing. See it here:
    http://img119.imageshack.us/img119/4999/pic1dh1.png

  • How to display all available data for KFs from different Cubes

    Hi,
    I am using a MultiProvider that consists of two InfoCubes. KF1 uses Cube1, KF2 uses Cube2 - characteristic Country exists in both cubes. I have the following data:
    KF1 - Country 1: 5
    KF1 - Country 3: 8
    KF1 - Country 4: 10
    KF2 - Coutnry 1: 9
    KF2 - Country 2: 7
    KF2 - Country 5: 3
    I have a query that uses Country as a drilldown characteristic (ROWS) and displays the values of KF1 and KF2 (COLUMNS) for each Country. However, instead of seeing data for Countries 1-5 I only see data where I have results for KF1 (Countries 1,3 and 4). The value for Country 1 for KF2 shows up correctly in the corresponding row, but Countries 2+5 aren't displayed for KF2. If I change the Access Type for Result Values from "Posted Values" to "Master Data" I get the correct result. However this is not feasible in the final setting due to the amount of data that has to be handled (MasterData setting will lead to crashes of the query due to maximum number of cells exceeded).
    Are there any other options to force the query to display values for all characteristic values where I have data for any KF?
    Thanks a lot for your help!
    Best regards,
    David

    As it turned out the issue was due to 2 restrictions on KPI2:
    1) Restriction to InfoProvider "Cube 2"
    2) Constant selection on two characteristics that have filters on a global level but which should not affect the display of the data for KF2
    Removing (1)+(2) provided the desired result.

Maybe you are looking for

  • Error updating Premiere Elements 12 to 12.1

    I keep getting an error when trying to update to Premiere elements 12 to 12.1. Not sure why.

  • Preview keeps resetting as my default pdf viewer

    My vision is not perfect and can configure Adobe Reader better than Preview for my pdfs. I use CMD-i to change the default viewer to Adobe but every time I restart they are all set back to open in Preview. I do use TeXShop which uses Preview but don'

  • Version 8.1.7

    Is 8.1.6 J2EE compliant?When is the Oracle 8.1.7 release scheduled?Where can we get more info on the EJB 1.1 support(Entity Beans) by Oracle as also the 8.1.7 release details. Any info? Thanks in advance [email protected] null

  • Oracle Virtual Directory - Local Store Adapter Creation

    Hi All, I had an Oracle Virtual Directory Server integrated with three different Active Directory Server. Active Directory1: ou=group1,dc=company,dc=com Active Directory2: ou=group2,dc=company,dc=com Active Directory3: ou=group3,dc=company,dc=com I h

  • Invoice Split due to Tax Departure country and Number of Foreign Trade Data

    Hello Friends, With all the search I have done, this question was asked and answered a lot previously, but at the same time most of the previous solutions confuse me or didn't help me to solve the issue. My issue is there is a invoice split for a sal