Simple date format with 1st 2nd 3rd etc

hai
i want to dispaly the date in the format
25th of December 2004
i tryed to format in SimpleDateFormat, but there is not special format to display date as 1st 2nd 3rd.
can anybody help me how to do this
Archi

THANKS YOU
THANKS FOR YOUR VALUABLE RESPONSE
THAT I KNOW VERY VERY WELL HOW TO DO THAT.
ITS URGENT I DONT WANT TO WASTE TO "INVENT A NEW STUFF"
ARCHI.

Similar Messages

  • How do I activate AUTOMATIC superscripting for numbers / dates; e.g. 1st, 2nd, 3rd, 4th, etc .... It used to do this in all PRE-5.0 versions of Pages; now, it is GONE from Pages 5.0, and I cannot find out where / how to activate it !!

    How do I activate AUTOMATIC superscripting for numbers / dates; e.g. 1st, 2nd, 3rd, 4th, etc .... It used to do this in all PRE-5.0 versions of Pages; now, it is GONE from Pages 5.0, and I cannot find out where / how to activate it !!

    Whilst I appreciate your responding - I do not think this helps with what I was enquiring (at least not without further explanations anyways).
    I am aware of, and do use, the function - System Preferences > Keyboard > Text - for various replacements like (tm), (c), etc .... and also for fractions like 1/2, 1/4, 1/3.
    However, my question was in relation to SUPERSCRIPTS for dates / numbers - namely, superscripting numerical suffixes for things like 1st, 2nd, 3rd, 4th,
    So - please help - HOW do I set this up ? If indeed it is possible without System Preferences > Keyboard > Text ???

  • Date format in 1st January, 2010

    Hi all,
    1. How can I get or set date having 1st, 2nd 3rd, 5th.. for date.
    Ex : for 1 st
                 2 nd
                 3 rd
                 4 th
    I want the last digists given in bold. Is there any standard function module
    2. How can I get currency fields like $, .... for pound...etc In which table does it stores
    thanks,
    Prasad

    hi,
    1) for making it as bold you can make use of tags <strong> </strong>.....
    in your logic i have shared a code here for your reference also please go through it.
    METHOD wddoinit .
      DATA lv_string TYPE string.
      DATA formatted_text TYPE string.
      DATA formatted_text_obj TYPE REF TO cl_wd_formatted_text.
      DATA ex   TYPE REF TO cx_wd_general.
      DATA element  TYPE REF TO if_wd_context_element.
      DATA current_controller TYPE REF TO if_wd_controller.
      DATA message_manager    TYPE REF TO if_wd_message_manager.
      DATA lo_el_context TYPE REF TO if_wd_context_element.
      DATA ls_context TYPE wd_this->element_context.
      DATA lv_fromat_text TYPE wd_this->element_context-fromat_text.
      lo_el_context = wd_context->get_element( ).
    " use tag <strong> to make the words bold .
      lv_string = 1 ' <strong> (st)</strong> '.
      formatted_text_obj = cl_wd_formatted_text=>create( xml_text =  lv_string  ).
      lo_el_context->set_attribute( name =  `FROMAT_TEXT` value = lv_string ).
      TRY.
          formatted_text_obj->validate( ).
        CATCH cx_wd_general INTO ex.
         " Error in formatted text
          current_controller ?= wd_this->wd_get_api( ).
          message_manager = current_controller->get_message_manager( ).
          element = wd_context->get_lead_selection( ).
          message_manager->report_attribute_exception(
              message_object = ex
              element        = element
              attribute_name = `FROMAT_TEXT`
      ENDTRY.
    ENDMETHOD.
    2) for currency ...there is a table TCURR,vbak also has a currency field..
    also
    To find the Reference field for any CURR or QUAN field:
    Open the Table/Structure in SE11
    Select the Tab : CURRENCY / QUANTITY FIELDS
    there you can find the Reference table and Reference fields.
    hope thsi may be useful to you.
    thanks and regards,
    sahai.s

  • FormatDate and 1st, 2nd, 3rd...

    Hi,
    I have done a piece of code to do this, but I can't believe there is not something out there to do that already, so I thought I'd check here :)
    What I want is to display the date in the form:
    Tuesday, September 24th
    With the "th" bit being the correct one for 1st, 2nd, 3rd, and so on.
    Is there a way to do that using the <fmt:formatDate> tag ?
    Thanks

    I doubt if there's a way to to add the "th" simply by using a custom date pattern.
    I was unable to find what makes up the custom date pattern in the jstl
    format date tag.
    However this here : http://java.sun.com/j2se/1.5.0/docs/api/java/text/SimpleDateFormat.html
    shows a a chart of date patterns, and the "th" part is not listed anywhere.
    Maybe if there was a glossary term for the "th" part of the date, it would be easier to find a solution.
    You can also check with Apache's JSTL user mailing list for a solution if no one posts one here.

  • Regarding simple date format

    Hi,
    Can any one please tell what is simple date format for below format.
    2008-11-04T11:49:04.312-04.00

    Basil wrote:
    I think all are getting confused with my question, I dont want to know how to convert date
    to a a particular format, I want to know if there is any format for 2008-11-04T11:49:04.312-04.00
    like yyyy-MM-dd'T'HH:mm:ss.SSS for 2008-11-04T11:49:04.312. My JDK version is 1.4
    Edited by: Basil on Nov 4, 2008 7:43 AM
    Edited by: Basil on Nov 4, 2008 7:43 AMRead the link for SimpleDateFormat and make one. How is that hard to understand? And it is what you have been being told from the beginning, and would have realised had you actually read the API docs pointed to. All the information you need to do so is there.

  • Updated my iphone4 with ios6.1 software. App store is not working. Tried rebooting, restoring, changing date, signing with another apple id etc. but no luck. can someone please help?

    Updated my iphone4 with ios6.1 software. App store is not working. Tried rebooting, restoring, changing date, signing with another apple id etc. but no luck. can someone please help?

    I guess I will wrap this up. I have abandoned iPhoto and viewing my Photo Streams using it and moved to Adobe products (Bridge + PS). So that's that.

  • Problem with central build of Simple Date Type with Enumeration

    Dear gurus,
    I hope I'm posting this in the correct forum. Please advise if I'm in the wrong forum.
    I have a Web Dynpro DC in which I've created a simple data type with enumeration.  It is used for binding to a radio box. The data type is called DownloadType; the enumeration contains two vales: current and archive. To allow me to access the enumeration values, I turn on the "Generate a class representation of the enumeration" in the data type builder.
    I then reference the enumeration values with code like:
    if (downloadType.equals (DownloadType._CURRENT))
        yada yada yada
    This works fine when building locally and deploying directly. But when the DC is built by CBS (or doing a "Development Component->Build..." in NW Dev Studio), the build fails, stating that the DownloadType._CURRENT symbol cannot be resolved.
    For example:
    C:yadayadayada.java:227: cannot resolve symbol
    symbol  : variable _CURRENT
    location: class yadayadayada.DownloadType
                    equals(DownloadType._CURRENT))  {
    Apparently the central builder is not smart enough to handle the "Generate a class representation" flag.
    Is this a known problem? Are there any workarounds?
    Thanks in advance for any help you can provide.
    -Kelly
    P.S. Environment: 2004s

    Hi Kelly,
    works for me using SP10, what SP are you on?
    There's a line in the DC log that says:
         [ddgen] [Info]    Generating datatypes/com/x/x/x/MyEnum.java
    and the java compiler includes the matching path for compilation:
          [echo]   source paths:
          [echo]     ...\_comp\src\packages
          [echo]     ..\t\ABF37B5AFB3B2E8A76FFD29E7862EA48\gen_ddic\datatypes
    Regards,
    Marc

  • 0CALWEEK to be displayed in date format with start of week date

    Hello everyone,
    I have a requirement wherein I want to display 0CALWEEK info object in the cube in date format with start of week date in the Bex query report. For example if 0CALWEEK is 23.2005 then in Bex report it should display as 06.06.2005. Anyone got any ideas if we can achieve this without adding any additional info object in cube itself ?
    many thanks,
    Neeraj

    Hi Neeraj,
    There are multiple ways to achieve this.
    1. Virtual characteristics. This approach still requires having a placeholder of 0DATE type in the query, but you don't have to populate it in your load. This could slow down you query as well.
    2. Depending of the frontend you using you can run Excel macro (BEx) or Table exit (Web).
    Please let me now if you need more details.
    Regards,
    Gersh

  • Simple Date Format

    Hi,
    I have an entity object with some attributes, one of them is called "CREATED_ON", which i have specified as a history column (created on).
    I have specified a format type of Simple Date in my Control hint and a format of dd-MM-yyyy. I then created a view based on my entity and dragged the view as an adf creation form. I also dragged a commit button to commit my record.
    However, the date that is stored in my database have a non-zero time component (e.g. 10-JUL-2007 10:46:22). This is a problem becuase in my search form, the search criteria does not work (it requires the exact time also to work). I do not want to use TRUNC in my SQL query.
    Instead i want the date to be stored with the format mask that i have specified.
    Can you please help me?
    Thank you

    Do you really want to lose the time component altogether, or just make the query on date-without-time work?
    There would be no way of recovering the information about when during the day the row was created if you truncate the time information, but it's possible to achieve if that's what you want. Both are possible to achieve.
    To achieve the "losing the current time info forever" approach, add the following overridden method in your entity impl class that slightly changes the way the history attribute value is returned, in my case, for the HIREDATE attribute of an Emp example:
        protected Object getHistoryContextForAttribute(AttributeDefImpl attributeDefImpl) {
            Object ret = super.getHistoryContextForAttribute(attributeDefImpl);
            if (attributeDefImpl.getIndex() == HIREDATE) {
                ret = new Date(new java.sql.Date(((Date)ret).getValue().getTime()));
            return ret;
        }To achieve # 2 instead, just add a SQL-derived attribute to the view object with formula:
    TRUNC(HIREDATE)and then use that sql-derived attribute in the query form instead of the normal HIREDATE attribute.

  • Simple date format update/cleansing not working

    Dear All,
    Some rows are not being updated after update
    create table X(
    Surname varchar2(20),
    dob varchar2(20),
    dobupdate varchar2(20));
    insert into X values('Hookman','22-Apr-78','22-Apr-78');
    insert into X values('Beverly','21/06/1966','21/06/1966');
    insert into X values('Wickham','01/23/1985','01/23/1985');
    insert into X values('Logmann','26/Dec/1972','26/Dec/1972');
    insert into X values('Scooby','30.04.1966','30.04.1966');
    insert into X values('Trumph','15-August-1967','15-August-1967');
    insert into X values('Delaware','Aug-03-1961','Aug-03-1961');
    insert into X values('Wicked','03.Sep.1961','03.Sep.1961');
    insert into X values('Orlando','18.September.1961','18.September.1961');
    SURNAME DOB DOBUPDATE
    Hookman 22-Apr-78 22-Apr-78
    Beverly 21/06/1966 21/06/1966
    Wickham 01/23/1985 01/23/1985
    Logmann 26/Dec/1972 26-DEC-1972
    Scooby 30.04.1966 30-APR-1966
    Trumph 15-August-1967 15-August-1967
    Delaware Aug-03-1961 03-AUG-1961
    Wicked 03.Sep.1961 03-SEP-1961
    Orlando 18.September.1961 18.September.1961
    9 rows selected.
    =====================================
    --Code below is meant to update person Beverly
    Update x set dobupdate = to_char(to_date(dobupdate,'DD/MM/YYYY'),'DD-MON-YYYY')
    where dobupdate like '__/__/____';
    error - not valid month
    =======================================================
    --Code below is meant to update person  Trumph
    Update x set dobupdate = to_char(to_date(dobupdate,'DD-MONTH-YYYY'),'DD-MON-YYYY')
    where dobupdate like '__-_____-____';
    0 row/s updated
    =========================================================
    --Code below is meant to update person Orlando
    Update x set dobupdate = to_char(to_date(dobupdate,'DD.MMMM.YYYY'),'DD-MON-YYYY')
    where dobupdate like '__._____.____';
    0 row/s updated
    Where am I going wrong. I hvae no problems with updating other records in the table except fot just these three patterns.
    Help please.
    Cube60

    Thanks Warren, both suggested codes did not work and I can see why now. Alex has pointed it out.
    Alex brought me to realise Wickham's DOB is in the American format. The update query could not resolve that format and how to update it but at least it could have updated that of Beverly and left that of Wickham.
    After deleting Wickham completely, the update query worked on Beverly.
    Am just doing some data cleansing from a poorly designed Access database now meant for Oracle.
    So nothing can be done to resolve such mixture of date formats, I mean Uk and American.
    But now, Why are the update statement below coming with 0 records updated.
    The dates to be update are written like this 15-August-1967 and 18.September.1961 respectively
    --Code below is meant to update person Trump
    Update x set dobupdate = to_char(to_date(dobupdate,'DD-MM-YYYY'),'DD-MON-YYYY')
    where dobupdate like '__-__-____';
    0 row/s updated
    =========================================================
    --Code below is meant to update person Orlando
    Update x set dobupdate = to_char(to_date(dobupdate,'DD.MMMM.YYYY'),'DD-MON-YYYY')
    where dobupdate like '__._____.____';
    0 row/s updated
    many thanks
    cube60
    Message was edited by:
    cube60

  • Date format with : in between

    Hi,
    I want the date format from 20100407 to 2010:04:07.....
    can anyone give me some ideas....
    Try searching. Thread locked.
    Locked by: kishan P on Aug 25, 2010 6:01 PM

    This behaviour is documented in the Oracle Database 10g Globalization Guide; it also includes the steps on how to revert back to the Oracle 9i locale definitions.
    http://download-west.oracle.com/docs/cd/B14117_01/server.101/b10749/applocaledata.htm#sthref1769
    Please note that 10g is using the correct convention, the Oracle9i locale definition files will be desupported in a future release.

  • Date format with alter session -- very urgent !!!!

    The default format of date is DD-MON-YY.
    I like to change as DD/MM/YYYY. So I tried to do so by going
    through my login in SQLPlus and wrote
    ALTER SESSION
    SET NLS_DATE_FORMAT = 'DD/MM/YYYY'.
    The format got changed and there after every query displayed
    date in dd/mm/yyyy format. But once I exit sqlplus and reenter
    in sqlplus, the format goes away and the default date format i.e
    dd-mon-yy comes in existence.
    I want to know, how can i make my date format permanent and too
    for all users.
    null

    hello Khan,
    You can set this format in 2 ways, one is
    local setting and the other one is on server setting.
    Edit your c:\windows\oracle.ini (local setting)
    or your init.ora (oracle server setting)
    and add this script
    SET NLS_DATE_FORMAT = 'DD/MM/YYYY'
    note: if there's no nls_date_format in oracle.ini, the server
    nls_date_format in init.ora will be the current setting
    on your PC
    Hope this will help
    NEC PHIl.
    Shamsad Khan (guest) wrote:
    : The default format of date is DD-MON-YY.
    : I like to change as DD/MM/YYYY. So I tried to do so by going
    : through my login in SQLPlus and wrote
    : ALTER SESSION
    : SET NLS_DATE_FORMAT = 'DD/MM/YYYY'.
    : The format got changed and there after every query displayed
    : date in dd/mm/yyyy format. But once I exit sqlplus and reenter
    : in sqlplus, the format goes away and the default date format
    i.e
    : dd-mon-yy comes in existence.
    : I want to know, how can i make my date format permanent and
    too
    : for all users.
    null

  • When printing a file the 2nd, 3rd, etc pages have the top two lines cut off. What can I do?

    When printing webpages from a website on Firefox the top two lines of pages 2, 3, 4, etc are cut off. I printed the same website article on Safari and have no problem. I also checked out Word documents of more than one page and found no problems with pages 2, 3, etc. I tried to print other articles from Firefox from other websites and found the same problem. I spent an hour with HP tech support for my printer and could not find any problems with the printer. Something is up with Firefox. Please help???
    Thank you very much.
    Samuel

    Hi LouisaKaymen-
    I would recommend reading this Support article:
    [[Firefox prints incorrectly]]
    There are tips on how to troubleshoot printing issues.

  • Tip for Data Merge with Multiple Records (labels, etc.)

    I have seen many InDesign Data Merge questions about how to create sheets of mailing labels, especially the problem of getting only one label per page, when you need 30 or more.
    Adobe's instructions are poor and incomplete in that InDesign doesn't step out the records from a data source - it steps out the FRAMES that contain the data field placeholders.
    That is why you only need to place a text or image frame once on a single page - during the datamerge, InDesign will create the additional FRAMES for each record, and it will create the pages required to hold them.
    You do have to set the desired spacing on the
    If you create the frame on a Master page, ID allows you to update the data source (when it changes) in the Data Merge tool panel.
    These are very nice and robust features, but the documentation for them is confusing to many people.
    You will find more great in-depth help  for Data Merge, with screen captures and attachments, here in the forum.

    For a multiple record merge you need one set of placeholders, then set the margins and spacing in the merge options so the positioning is correct.
    Warning: Using Preview in a multiple record merge will corrupt the file. If you press the preview button, Undo after looking at the preview, then merge without using preview.

  • Help :  Simple Date Formats Problem in JDev11 [TP4] ?

    Hi ;
    I use ADF/JSF in JDeveloper 11 [TP4].
    in JSF Page
    what can I do to enter Date format mask dd-mm-yyyy hh:mi:ss
    to Return my Date Format mask like
    mi-mm-yyyy meaning minute-month-year
    in another column ?
    and I know The format mask is defined in a File called formatinfo.xml .
    Thanks & Regards
    Forakora

    Hi,
    if it is for display then you don't need to change it in the model but can link the output text component to a managed bean that gets the stored date value to then change it to the format you prefer. This however may not be suitable if the date should be updated from that column

Maybe you are looking for

  • SAP Authentication issue in Xcelsius 2008 SP4

    Ingo Can you help me? Xcelsius 2008 SP4 Failed to Open/Save from BusinessObjects Enterprise and throws an error Failed While Trying to Logon User "0000" RFC error: "LOGON_DATA_INCOMPLETE" when using SAP Authentication. It works perfect with Enterpris

  • Installation error when installing CS6 on Mac?

    I keep getting an installation error when I try to install CS6 on my Macbook Pro. It says "installer failed to initialize, this could be due to a missing file". It also shows troubleshooting tips. I have tried them and none of them work. I also tried

  • FBL5N - Logical databases - Dyanamic selection screen fields

    I am trying to insert "Profit center" from BSEG table of Logical database DDF into the dynamic selection screen of FBL5N. Procedure I followed: Program -> Attributes -> Logical database -> Extras -> Selection views. Interestingly when I add "Profit c

  • Ideapad A2019 HDMI out issues

    Hi, I recently purchased an HDMI cable for my Ideapad hoping to be able to watch stuff on my monitor from my tablet, but when I plugged the cable in, it didn't work. Only after I forced the cable in and got it into a weird position would the image sh

  • Issue On Table Control Validation

    Hi All, I Got One requirement that is  " Sales Employee Depo Tour Details ", Requirement Is ---> IF One Sales Employee Updates Data Base Table Through  Table Control Details Are : Emp no: 1234, Depo City : Hyderabad, Starting Date : 25:01:2010 End Da