Date and time formats in DW CS3 using Bindings Panel

Hi!
I've seen a couple of questions on the web concerning this
but none have been answered.
I'm using an Access database with a date field that I want to
format on my ASP page using the Short Date format from the Bindings
panel in DW CS3. It just won't work. In earlier versions of DW it
worked just fine and also in the CS4 Beta. Anyone who knows what
the deal with CS3 is?

quote:
Originally posted by:
Newsgroup User
Bargic wrote:
> Hi!
> I've seen a couple of questions on the web concerning
this but none have been
> answered.
> I'm using an Access database with a date field that I
want to format on my ASP
> page using the Short Date format from the Bindings panel
in DW CS3. It just
> won't work. In earlier versions of DW it worked just
fine and also in the CS4
> Beta. Anyone who knows what the deal with CS3 is?
What specifically does it just won't work mean? What steps
are you taking and what is the end result of your steps? If you get
code inserted into the page, how does that compare to what the
other versions are outputing?
Well, nothing happens at all. When I select the dynamic text
that gets its value from a Access database, the datacolumn in the
database is in a dateformat. The default dateformat is displayed
like this on the page;
8/6/2008 5:45:18 PM, I just want the date to display in a
Short Format, like this 8/6/2008.
When I select the dynamic text in DW CS3 and try to select
the Short Format option ion the dropdown menu in the bindingspanel
nothing happens. When I do the same thing in the CS4 Beta this
funktion is inserted in the head of the document:
function DoDateTime(str, nNamedFormat, nLCID)
dim strRet
dim nOldLCID
strRet = str
If (nLCID > -1) Then
oldLCID = Session.LCID
End If
On Error Resume Next
If (nLCID > -1) Then
Session.LCID = nLCID
End If
If ((nLCID < 0) Or (Session.LCID = nLCID)) Then
strRet = FormatDateTime(str, nNamedFormat)
End If
If (nLCID > -1) Then
Session.LCID = oldLCID
End If
DoDateTime = strRet
End Function
And at the dynamic text the code changes to this <%=
DoDateTime((rsTestrecset.Fields.Item("date").Value), 2, -1) %>
Everything is working like charm!
But in the CS3 version noting is inserted on the page. It's
not possible to edit the formats either, in the bindings panel. If
you try to do that you get a dialogbox that says Something like
"The formatttype Dat/time could not be found" (My application is in
swedish, so it may not exactly be the correct text.)

Similar Messages

  • Ack file date and time format is same as in source xml format

    Hi...All,
    1) my scenario is file-rfc-file using BPM,
    we are getting file in xml format from source along with timestamp and this data will be going to R/3 and the acknowledgement (success or failure) file will be sending back to source system.
    in this sceneario we have to fulfill in the follwing client requirement
    File1.<same File1 date and time>.XML
    Is it possible to make it as the following? if it is possible
    could u please let me know how to fulfill the follwing requirement.
    ACK File1.<same File1 date and time>.XML
    Where <same File1 date and time> format = u2018YYYYMMDDhhmmssu2019 .
    2) Is the XML file name visible in the SAP-XI monitoring screen and will it help to trace the messages?
    thanks in advance,
    Pasi.

    Hi,
    I didnot under stand your first question coulf you be more specfic.
    2. Ans : In general , we will follow the below steps
    --First we we check for the file is picked or no, if not see the Sender side CC parameters like mode and path details
    --If file was picked then we need to check whether we are using the File content conversion parameters or not if yes we need to check the FCC parameters ,
    Goto RWB-Channelmonitoring by the following link
    http://host:port/mdt/channelmonitorservlet
    select the sender side CC name and check for errors
    If no errors in above, goto SXMB_MONI for Integration Engine xml processing , check for successful or error occured black or red color
    --if success in SXMB_MONI then we need to check in RWB as above channel monitor now select the receiver side CC
    If no errors then check for output file is placed intarget or not
    Please reward points if it helps
    Thanks
    Vikranth

  • Menu bar date and time format in Lion

    Is there a way to change the formatting of the date and time shown in the menu bar in Lion? I've been googling for a while, but can't find a solution. At the moment the time has a very unusual format of <hh:mm.ss>. Note the '.' before seconds. What I want to achieve is to change that dot to a colon as it normally is (and was in Leopard and earlier, don't know about Snow Leopard), ie. <hh:mm:ss>. I've checked the date and time formats in system settings several times, but those have no effect on the menu bar. When I set the clock to display an analogue icon and click on it, the date and time in the popup menu are shown correctly using the full format.

    johankytt wrote:
    Well ofcourse I am. And no, I am not using a third party utility. This functionality has been available in OSX for ages.
    I never noticed that option! 
    It works ok for me (with a colon, not a dot).  
    Is it possible you have a dead pixel where the top dot of the colon should be?

  • Validation on data and time format

    Hi
    In a flat file a date and time fill in but user.  And the data and time format should always be fill in with the format <DDMMYYYY> <HHMMSS>
    is there a FM which check whether user has put the wrong date format such as <YYYYMMDD> or <MMDDYYYY> instead for the the one mention above. 
    Please advise whether there is a FM which check on the format on the time stamp also.
    Note: the input of the data and time is done by the user.
    Thank

    Hi,
           use the new OOPs concept,
    PARAMETERS dateTYPE c LENGTH 10.
    DATA matcher TYPE REF TO cl_abap_matcher.
    * For date
    matcher = cl_abap_matcher=>create( pattern = `[0-9]{1,2}/[0-9]{1,2}/[0-9]{2,4}`
                                       ignore_case = 'X'
                                       text = date ).
    IF matcher->match( ) IS INITIAL.
      MESSAGE 'Wrong Format' TYPE 'I'.
    ELSE.
      MESSAGE 'Format OK' TYPE 'I'.
    ENDIF.
    like dis pattern for time : 
    [0-9]{1,2}:[0-9]{2}
    pattern for timestamp:
    [0-9]{1,2}/[0-9]{1,2}/[0-9]{2,4} [0-9]{1,2}:[0-9]{2}
    Code Formatted by: Alvaro Tejada Galindo on Jan 7, 2009 4:35 PM

  • How to change date and time format

    Hi experts,
    Can i know how to change the date and time format?
    I want the date format to be dd-mmm-yyyy  and time format to be hh:mm:ss
    These date and time is in my sapscript form.
    I make use of PERFORM function in sapscript.
    This is the code in my print program.
    FORM get_actlog_QA TABLES in_tab STRUCTURE itcsy
                           out_tab STRUCTURE itcsy.
       DATA: object TYPE string, "
            qaname LIKE JCDS-USNAM, "NAME for engineering process, QA Manager
            qadate LIKE JCDS-UDATE, "DATE changed in engineering process, QA Manager
            qatime LIKE JCDS-UTIME. "TIME changed in engineering process, QA Manager
    DATA: lt_jcds type standard table of jcds,
          wa_jcds like line of lt_jcds,
          new_date(10) type c.
      READ TABLE in_tab INDEX 1.
      MOVE in_tab-value TO object.
      select * into CORRESPONDING FIELDS OF TABLE lt_jcds
      from jcds WHERE objnr = object
        AND  ( stat = 'E0005' )
        AND inact = ''.
      Loop at lt_jcds into wa_jcds.
          qaname = wa_jcds-USNAM.
          qadate = wa_jcds-UDATE.
          qatime = wa_jcds-UTIME.
       READ TABLE out_tab INDEX 1.
       MOVE qaname TO out_tab-value.
       MODIFY out_tab INDEX sy-tabix.
       READ TABLE out_tab INDEX 2.
       MOVE qadate TO out_tab-value.
       MODIFY out_tab INDEX sy-tabix.
       READ TABLE out_tab INDEX 3.
       MOVE qatime TO out_tab-value.
       MODIFY out_tab INDEX sy-tabix.
      endloop.
      clear wa_jcds.
      ENDFORM. 
    This is my PERFORM in sapscript.
    /:           DEFINE &V_QANAME& = ''.
    /:           DEFINE &V_QADATE& = ''.
    /:           DEFINE &V_QATIME& = ''.
    /:           PERFORM GET_ACTLOG_QA IN PROGRAM ZFIR002
    /:           USING &VIQMEL-OBJNR&
    /:           CHANGING &V_QANAME&
    /:           CHANGING &V_QADATE&
    /:           CHANGING &V_QATIME&
    /:           ENDPERFORM.                     
    Sapscript
    Prepared by : &V_QANAME& ,, &V_QADATE& ,, &V_QATIME&
    The output now is
    Prepared by: Name   20080312  115536 
    I want to change the date format to 12-MAR-2008
    and the time format to 11:55:36 
    Can anyone please suggest on how to solve this?
    Thank you.

    Hi,
      Before assigning the  QADATE value you can write the logic to display  20080312   as  12-MAR-2008  taking the offset values .
    Like
    qadate = wa_jcds-UDATE.
    qatime = wa_jcds-UTIME.
      lw_year    = qadate(4).
      lw_month = qadate+4(2).
      lw_date    = qadate+6(2).
    case lw_month.
    when 1.
    when 2.
            concatenate lw_date  '-FEB-'  lw_year into qadate.
    when 3.
          concatenate lw_date '-MAR-' lw_year into qadate.
    endcase.
    READ TABLE out_tab INDEX 2.
    MOVE qadate TO out_tab-value.
    MODIFY out_tab INDEX sy-tabix.
    And you can also change the timeformat also  .
    then assign that value to qatime .Then
    READ TABLE out_tab INDEX 3.
    MOVE qatime TO out_tab-value.
    MODIFY out_tab INDEX sy-tabix.
    I think this helps you.
    Regards,
    Rajitha.

  • How to set the date and time format from Windows Server 2008 R2

    Hi,
    I want to control my client's date and time format as dd/mm/yyyy format and I need to do it using the windows server 2008 R2. How can I achieve this goal?
    Yoshika04

    Hi,
    In Windows Server 2008 R2, you can use Regional Options Extension in Group Policy Preferences to configure the date and
    time format. For more information, please refer to:
    Regional Options Extension
    http://technet.microsoft.com/en-us/library/cc754496.aspx
    Regards,
    Bruce

  • Fetching SAP Date and Time format

    I am using  "RFC_READ_TABLE"  function module  to fetch SAP table contents using JCO APIs. I need to know the date and time format to parse the values of date and time fields into respective java data types. (I am receiving these values in the form of string using above RFC)
    How can I get date and time format information from SAP server?
    Regards
    Amol

    Hi,
    Through T-Code SU01 in general setting tab   u can do the general setting for  date time, number format
    Type tcode SPRO and Got to general settings -> Define Countries then  restart the system.

  • Date and Time formats change in transfer rules

    Hello Experts,
    Could someone please help me to fix the following issue with DATE AND TIME format.
    I have two info objects zdate with data type DATS (length 8) and ztime with data types TIMS (length 6).
    The data in the data source (alalertdb table) is in the format of date dd.mm.yyyy and time in hh:mm:ss.
    Now when i am trying to extract the data, the load is failing because the system is taking dd.mm.yyyy length as 10 and hh:mm:ss length as 8. My infoobject
    only alows 8 for date and 6 for time.
    Do I need to write any routines in the transfer rules? If yes please share the code.
    All the inputs are much appreciated.
    Thanks in advance.
    Regards,
    Harish

    Hello ALL,
    Thanks for your inputs.
    Adios, I will try your routine if I am not tru with the formula. Thank you very much for your reply.
    Bjorn, Your formula sounds quite simple. can you please eloberate the information.
    When I used the formula for the date field its giving me an error with message FORMULA ELEMENT IS NOT ALLOWED HERE.
    Formula I used is:
    LEFT( 2, < /BIC/ZOOH_DATE> ) & SUBSTRING( < /BIC/ZOOH_DATE>, 3, 2 ) & RIGHT( 4, < /BIC/ZOOH_DATE> )
    can you also please let me know what results the formula brings.
    Thanks and Regards,
    Harish Mulaka

  • How do you change the date and time format in Pages

    I've tried changing the date and time format a number of times for Pages but it does not change.  I'm going to the System Preferences/Language and Text and Formats.  I make the changes click on OK and go back to Pages.  NO change.

    Hi Uncle,
    Page 116 of the Pages'09 User Guide: Control Click the date, Edit Date and Time.
    Date and time can also be in a table. Format the table cell.
    The User Guide is well worth a read. Download it from the Help menu in Pages.
    Regards,
    Ian.

  • ESS services date and time format?

    Hi,
    How can we change the date and time format displayed on some of the ESS services like addresses, LR screen?  Currently I see US format date MM/DD/YYYY and time is in european format 12,50 instead of dot(.).
    I tried changing the browser setting to UK but it didn't work.  Any other suggestion please?
    Thanks
    Praveen

    I tried to create a simple WD application with just date control UI element, I can see the date format is displayed based on my browser setting.  If I change it to US in my browser locale, it date format changes to US date format, if I change it to UK locale the date format is UK based. 
    Only my ESS/MSS applications are always displayed as US format.  I checked at the iView level and I can only see ForcedRequestLanguage but I cannot see ForcedRequestCountry property so I'm unable to set any country specific details here.  When I look at the JCo connection language tab, I see the
    Current locale: en
    Default VM locale:  en_US
    I think this is where change is required.  However I changed following JCo languages from en to en_UK but still no luck
    SAP_R3_HumanResources
    SAP_R3_HumanResources_MetaData
    Backend is checked as posted above.
    I checked below which is the second precendence in determining locale
    Portal mandatory locale -- open file prtDefault.properties on server under
    /usr/sap/<SID>/JC#/j2ee/cluster/server#/apps/sap.com/irj/servlet_jsp/irj/root/web-inf/portal/system/properties/
    I cannot find below mandatory parameters in the prtDefault.properties file
    request.mandatorylanguage
    request.mandatorycountry
    However, I found this
    request.defaultlanguage=en
    request.defaultcountry=us
    Is this something I can change?  Or should I replace or should I add mandatoryLanguage/country?
    Can this file be edited through NWA or should this file be edited manually at the file system level?
    Please advice.
    Thanks
    Praveen
    Edited by: Praveen11 on Aug 20, 2009 8:38 AM
    Edited by: Praveen11 on Aug 20, 2009 8:41 AM

  • Date and time formatting not responding

    I'm trying to total a column based on a date or date window.  My formula looks like this.
    SUMIF(Date,B1,'$')
    I have 2 tables.  The table with the formula references the other table, and compares Date in table 1 to B1 in table 2.  B1 is a date I enter to see a specific total for that day only.  It only works if all the times of the date window are 12:00:00 AM.  , and the B1 times are the same ..... Even though times are unimportant to the totals I need, and both are formatted to "none" and do. It show.
    So, how do I total a specific date with various times, but all the same date?  I have a sample file if it will make more sense to see it.
    Not that it matters, but I am doing this on an iPad, but the formula still did not respond correctly on Mavericks either.  Unless I set all times equal to B1.
    Sorry if I didn't explain very well.  I'm new at this formula thing. 
    Thanks
    Jeff

    Hi Jeff,
    The entered date in B1 will have it's time part set to 00:00:00 (midnight, at the beginning of that date). To use SUMIF to filter the date and time values in Table 1, you would need to write a single condition that would accept all date and time values falling on the date in BI, and reject all date and time values falling on days before or after that date.
    SUMIFS allows you to specify multiple conditions, all of which must be met to acept a test value and add its associated sum value to the total. Here's an example:
    The formula in B1 of Table 2 is shown below:
    B2: =SUMIFS(Table 1 :: B,Table 1 :: $A,">="&B1,Table 1 :: $A,"<"&(B1+1))
    Syntax: =SUMIFS(sum-values,test-values,condition,test-values,ˆcondition)
    Regards,
    Barry

  • Please fix date and time formatting in Hub and Calendar

    Hello,
    During initial setup I have used "English" as a setup language, but have since then changed it to "Croatian".
    In BlackBerry Hub, Calendar and Lock screens day and month names are still displayed and formatted in English.
    I noticed this bug briefly reported in another thread, but it is burried and not clearly visible, hence I'm putting it here by itself.
    This screenshot of Hub list proves language is in Croatian, but you can see "Friday, Augus..." in the swipped BlackBerry Hub.
    In addition to resolving this bug, please consider implementing "formatting" setting under "Date and Time" so that a user can pick a formatting that is indipendent of their language. For example, a short list of predefined selections such as:
    <Day name>, <Month name> <Day number>, <Year>
    <Month day> <Month name>, <Year>.
    <Year>-<Month number>-<Day number>
    Thank you in advance for your consideration. Regards,
    Hrvoje Solc

    Can you describe your problem a bit more. How are you passing the data, what is the error being seen in excel

  • Printing Date and time format LR 1.3.1

    I am trying to print photos with date and time information underneath. Choosing "Photo Info" then "Date" allows me access to everything I need, but in the wrong format. The time is showing up as military (24 hr) format and I cannot find where to change this anywhere in Lightroom. Thank you for helping me with this simple question.

    ruminant wrote:
    The computer is about 18 months old, used every day, usually plugged into mains. Does it still seem likely that the pram battery needs replacing? If so, will it be affecting other things too?
    The PRAM battery normally lasts substantially more than 18 months. If you have extended, Applecare, warranty, have Apple look at it. Otherwise, you can either try to change it yourself or have some service shop do it for you. Take a look [righ here|http://www.powerbookmedic.com/Take-Apart-Repair-Manuals-p-1-c-258.html] for more info.
    Besides losing the date and time, other parameters such as the volume, brightness, etc., will also reset to default due to PRAM failure.

  • Changing date and time  format

    Hi all,
      I got date and time value as  20051219 and 235959 resp.
    I want to convert it into standard format that is 19.12.2005 and 23:59:59.
    How should i dothis,or which function module should i used.
    Thanks and Regards,
    Sugeet.

    Using the WRITE statement
      data: gd_date(10).  "field to store output date
    * Converts date from 20020901 to 01.09.2002
      write sy-datum to gd_date dd/mm/yyyy.
    * Converts date from 20020901 to 01.09.02
      write sy-datum to gd_date dd/mm/yy.
    DATA time TYPE t VALUE '154633'.
    WRITE: time,
      /(8) time USING EDIT MASK '__:__:__'.
    Using Function modules
      data: gd_date(8).  "field to store output date
    * Converts date from 20010901 to 01SEP2001
      gd_date   = sy-datum.
      CALL FUNCTION 'CONVERSION_EXIT_IDATE_OUTPUT'
        EXPORTING
          input         = gd_date
        IMPORTING
          OUTPUT        = gd_date.
    Hope this helps.
    Reward points and close the thread if ur problem got solved or get back with queries.

  • Date and time formatting in excel spreadsheet

    Hi:
    When I try to pass the data from jsp to excel , the excel sheet can't publish the date and time in the pattern that I wanted. I used SimpleDateFormat to format the date and time when I passed the data from jsp.
    SimpleDateFormat formatter=new SimpleDateFormat ("MM/dd/yyyy HH:mm:ss a");
    Could anyone tell me a solution.
    Thanks.

    Can you describe your problem a bit more. How are you passing the data, what is the error being seen in excel

Maybe you are looking for

  • How to find an order as third party shipment

    Hi, I wanted to find whether the order is an third party shipment or not,  how to find it. can anyone help me.. Thanks & Regards Guhapriyan Subrahmanyam

  • FM to get purchasing price based on certain condition

    Hi, Is there any function module to get Price in purchasing document like PO after certain price condition like freight, discount etc. For example I have a material no, price per unit 50 USD and we'd like to buy 10 pieces of it, we have price conditi

  • Sony PRS-T1 Not Showing Up in Adobe Digital Editions

    Though my device, Sony eReader model PRS-T1, is listed under the supported devices (http://blogs.adobe.com/digitalpublishing/supported-devices), it does not appear when I open Digital Editions. I followed the directions at the following location: htt

  • Catch-up depreciation for the Subsequent Acquisitions in later years

    Dear expert, We have the following scenario: First an asset master record is created and it receives an acquistion value at the date 2013-08-09. The next year, we find there's something wrong with the acquistion value, so we make the subsequent acqui

  • Re "tips and hints for your security" post above

    surely the best tips and hints would be as follows: 1: skype, implement privacy settings that actually work. if you are unable to do so, do not offer them, and do not claim that they work.  2: try another provider. 3: try not to throw your computer o