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

Similar Messages

  • Date default to 1st January 2010 00:00

    When I search my outlook emails or search on finder for documents the date they were last modified defaults to 1st January 2010 00:00 I am not sure why or how to change this? Help please!

    Assumption: Your data always starts at 6:00 am everyday as you seemed to indicate in your example.
    Let's say the name of the column is DATETIME with the values you indicated. Then for the default value of the "from" prompt, enter this in the "Default to" window:
    SELECT TIMESTAMPADD(SQL_TSI_HOUR, 1, MAX(DATETIME)) FROM "Subject Area"
    and for the default value of the "to" prompt, enter:
    SELECT TIMESTAMPADD(SQL_TSI_HOUR, 16, MAX(DATETIME)) FROM "Subject Area"
    If everyday starts at 6:00 am, the default will be 7:00 am. 16 hourse later will be 10:00 pm.

  • 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.

  • Scripting Functoid for Date Formatting in Maps Biztalk 2010

    In the Source Schema I have the Date in xs: date Time Datatype in the Destination Schema I have date in String datatype. When I map directly I get the output as "2013-10-21T00:00:00". But I want it "2013-10-21" in output.
    I tried using the scripting but nothing worked like,
    public String ConvertEndDate(string param1)
    return DateTime.Parse(param1).ToString("yyyy-MM-dd");
    public string convertHireDate(string Date1)
    return DateTime.ParseExact(Date1, "YYYY-MM-DDThh:mm:ss", null).ToString("yyyy-MM-dd");
    Can anybody help me to deal with this. Thanks in advance.

    Thanks AshwinPrabhu.But I have the Source Schema date in "2013-10-21T00:00:00" format in Destination I need as "2013-10-21".
    I did the reverse like
    public static string convertHireDate(string sdatetime)
    return System.DateTime.ParseExact(sdatetime, "yyyy-MM-ddTHH:mm:ssZ", null).ToString("yyyy-MM-dd");
    But getting Error like,
    Exception type: XTransformationFailureException
    Source: Microsoft.XLANGs.Engine
    Target Site: Void ApplyStreamingTransform(System.Type, Microsoft.XLANGs.RuntimeTypes.TransformMetaData, System.Object[], System.IO.Stream[], Boolean)
    The following is a stack trace that identifies the location where the exception occured
    Additional error information:
            Function 'userCSharp:convertHireDate()' has failed.
    Exception type: XPathException
    Source: System.Xml
    Target Site: System.Object Evaluate(System.Xml.XPath.XPathNodeIterator)
    The following is a stack trace that identifies the location where the exception occured
    Exception type: FormatException
    Source: mscorlib
    Target Site: System.DateTime ParseExact(System.String, System.String, System.Globalization.DateTimeFormatInfo, System.Globalization.DateTimeStyles)
    The following is a stack trace that identifies the location where the exception occured
       at System.DateTimeParse.ParseExact(String s, String format, DateTimeFormatInfo dtfi, DateTimeStyles style)
       at Microsoft.Xslt.CompiledScripts.CSharp.ScriptClass_2.convertHireDate(String sdatetime)

  • Date Format in calculations

    Hi all,
    we are currently upgrading our discoverer from version 3.1.25 to version 10.2.0.1.0.
    we have an old report that had been created with the old version and saved on the computer (not in the database) with a date calculation on a date parameter as follows: <table_name>.<date_field> - :DATEPARAMETER (the date format of the two dates values is DD/MM/YYYY).
    This calculation works fine on the old discoverer version when we run it, but when we try to run the report on the new discoverer desktop version (10.2.0.1.0) we get an error that the parameter is incorrect.
    the thing is that if i convert the date format manually using the to_date function on the parameter, it works fine.
    My question is what is the default date format for the calculations, and how can i set it myself?
    i already added the NLS_DATE_FORMAT key in the registry under HKEY_LOCAL_MACHINE -> SOFTWARE -> ORACLE, but it doesn't work, it changes the date format of the date fields that are presented in the table after a report execution.
    In addition, if we save the report to the database using the desktop version and try to run the report on discoverer plus, we get the same error and need to perform the same solution (convert the parameter manually with to_date).

    mac-a-rooney wrote:
    I am working with dates.
    1st I want to calculate a time span for example calculate cell A2 - cell A1. In cell A1 it is written 01.01.2010 (so first of January) and in cell A2 01.02.2010 (so first of February). I wrote the dates in letters, too, to avoid misunderstandings due to different national date formats.
    Since January has 31 days, the obvious result thereof is "31D". So far so good.
    but now I want to multiply the 31 with a numeric value, but not the 31D, because if I do so, and let's say the numeric value is 3, then my result is 93 DAYS rather than just 93.
    Are you sure you're asking in the right forum?
    Using Numbers '08, with the following entries:
    B2: Jan 1, 2010
    C2: Feb 1,2010
    D2: =C2-B2
    E2: =3*D2
    I get 31 (not 31D) in D2 and 93 (not 93 DAYS) in D2.
    From your description, I think you're actually using Numbers '09, and Jerry's advice above applies.
    Regards,
    Barry

  • Change date format from DD.MM.YYYY to DD.MM in query

    Hi,
    In one partical query/web application we would like to change the display format of 0CALDAY from 01.01.2010 to 01.01 (without the year) because the data is in the columns and the analysis grid therefore is too wide. Changing this via SU01 is not an option.
    Is there any way to do this in the query?
    Thanks.

    Hi,
    If you want to display the calday data as titles of the columns,
    1) Create 2 Text Variables (ZEST1 and ZTEST2) in the title and assign them in the following format -->
    Quantity &ZTEST1&.&ZTEST2& (having a point in between them)
    2) Define ZTEST1 and ZTEST2 of the type 'replacement path' - the calday value can be used from either the infoobject or an input variable as required.
    2) In the replacement path section of ZTEST1, give an offset value (if date format is 10.10.2010, 'Offset Start' = 0 and 'Offset length' = 2)
    3)  In the replacement path section of ZTEST2, give an offset value (if date format is 10.10.2010, 'Offset Start' = 2 and 'Offset length' = 2)
    4) This would give the final result in the format 'Quantity 10.10'
    If you want to display the calday data in the columns itself, you will have to create one formula variable of the same settings above with Offset start at 0 and Offset length 4 or 5 and use it in a CKF or formula. In this case you will have to assign 2 decimal places to the column, since this is displayed as a number otherwise. the output for the same (for 01.01.2010) will be 1.01 instead of 01.01

  • Changing date format to look like dd-mm-yyyy

    I want to use the date format as 25-12-2010 (day-month-year). I could not find how. Is there a place to change that? Can I make custom formats for dates?
    Hursat

    Hursat,
    I must admit, I just noticed that you are using Numbers 08. Perhaps there is something different in Numbers 09. If so, I apologize. I don't presently have access to Numbers 08 to check.
    Numbers 08 Help says:
    . To add and format the date and/or time, place the insertion point where you want the value to appear, and then choose Insert > Date & Time.
    . To change the date and time format, Control-click the date and time value, choose Edit Date & Time, and then choose a date and time format from the pop-up menu. If you want the spreadsheet to always show the current date and time, select “Automatically update on open.”
    Based on this help, there's not much difference. Try a text box and see if you can insert date and time there.
    Jerry

  • 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.

  • Calander Date format(month year)

    Hi All,
      I am using the Date format (month year, 'January 2009') to  QaaWs as a input. But when i go into Xcelsius calendar i am trying to give the same format but its not taking  as same as mentioned above( I customize the cell in xcelsius spread sheet as month year). Is there any thing to change?
    Please help me.
    Thanks in advance.
    Muvva

    The month in words datatype is FCLTX.
    If you have the date field, you can convert to your required format.
    data : out_date(20) type c.
    DATA : ws_fcmnr TYPE fcmnr,
           ws_month TYPE fcltx.
    parameter   date like sy-datum.
    ws_fcmnr = date+4(2).
    SELECT SINGLE ltx
    INTO ws_month
    FROM t247
    WHERE mnr = ws_fcmnr
    and spras = 'EN'.
    concatenate ws_month date6(2) date0(4) into out_date separated by space.
    write out_date.
    Thanks,
    Susmitha
    Dont forget to reward points for useful answers.

  • Formatting a date like: Friday 24th January

    Formatting a date like: Friday 24th January
    Is there any way using the Java API to get the 'th' or 'st' bits on the numbers.
    I can't see it in java.text.SimpleDateFormat
    Thanks.

    import java.text.SimpleDateFormat;
    import java.util.Calendar;
    import java.util.GregorianCalendar;
    public class DateFormatter {
         public static void main(String[] args) {
              Calendar calendar = new GregorianCalendar();
              double[] limits = {1, 2, 3, 4, 21, 22, 23, 24};
              String[] dateFormats = {"st", "nd", "rd", "th", "st", "nd", "rd", "th"};
              ChoiceFormat choiceFormat = new ChoiceFormat(limits, dateFormats);
              String dateFormat = "EEEEE dd''{0}'' MMMMM";
              MessageFormat messageFormat = new MessageFormat(dateFormat);
              messageFormat.setFormat(0, choiceFormat);
              Object[] msgArgs = {
                   new Integer(calendar.get(Calendar.DATE))
              String message = messageFormat.format(msgArgs);
              System.out.println(message);
              SimpleDateFormat date = new SimpleDateFormat(message);
              System.out.println(date.format(calendar.getTime()));
    }

  • Formscentral - how do I change required date format to long date (e.g. January 2, 2014) in a form field?

    Formscentral - how do I change required date format to long date (e.g. January 2, 2014) in a form field?  I can't seem to change it from the short date format.

    Hi,
    I would suggest you to change the form language to English (UK), Here are the steps:-
    1. Open your form in FormsCentral
    2. Clik on Options tab
    3. Click on Language and Formatting and check out the selection for Form Language and make sure English (U.K.) is selected and the default date format should be day/month/year.
    Regards,
    Nakul

  • Change Date Format in VC from Mon Feb 20 00:00:00 GMT 2010

    Hi Gurus,
    Could someone please offer advice on how I'd change the following field, Mon Feb 20 00:00:00 GMT 2010 to a simple MON 20 FEB 2010?
    Thanks,
    Bim.

    Hi Bim,
    You can use the dynamic expression editor to get a short date format.
    for example, set the value of a field to =DATE(2010,02,20).
    I'm not sure this is what you've asked, if it doesn't help you can you please elaborate some more ?

  • Date Format -"2010-08-29 10:00:01+03:00"

    Hi All,
    Would like to know what the data format for following date:
    "2010-08-29 10:00:01+03:00"
    I did try the below, but it does not work.
    'YYYY-MM-DD HH24:MI:SS+TZH:MI'
    Appreciate your response.
    Thanks,
    Alex.

    Omit the '+' and use THZ:TZM:
    SQL> select to_timestamp_tz('2010-08-29 10:00:01+03:00', 'yyyy-mm-dd hh24:mi:sstzh:tzm') from dual;
    TO_TIMESTAMP_TZ('2010-08-2910:00:01+03:00','YYYY-MM-DDHH24:MI:SSTZH:TZM')
    29-08-10 10:00:01,000000000 +03:00
    1 row selected.or (more clear):
    SQL> select to_timestamp_tz('2010-08-29 10:00:01+03:00', 'yyyy-mm-dd hh24:mi:ss tzh:tzm') from dual;
    TO_TIMESTAMP_TZ('2010-08-2910:00:01+03:00','YYYY-MM-DDHH24:MI:SSTZH:TZM')
    29-08-10 10:00:01,000000000 +03:00
    1 row selected.http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/functions214.htm#SQLRF06143
    Edited by: hoek on Dec 11, 2010 3:50 PM

  • My iPad randomly dies and when it reboots the date comes up as 1st January at 10pm?

    My iPad randomly dies and when it reboots the date comes up as 1st January at 10pm?

    Hello zoeeeeee,
    Thanks for the question, that definitely sounds frustrating.
    This may be a good opportunity to restore the iOS software that is running on your iPad. The following article outlines how to do so:
    iTunes: Restoring iOS software
    http://support.apple.com/kb/HT1414
    Thanks,
    Matt M.

  • My 3gs keeps switching itself off and when i turn it on, the date is set to 1st January 1970

    I Have an Iphone 3gs that keeps switching itself off and when i turn it on, the date is set to 1st January 1970 :S   ... many software resets and updates won't do any good .. repaired at the manufacturer twice for the same, and works till it happens again on it's own. When it was repaired, the fix was mentioned as a reset done for the device. I have a friend who is alse havng same issue.
      can someone tell what is the reset that can be done to tr and do it from my end plzzz?

    Sounds like the battery is dead.  Bu try the following to rule out a software problem:
    - Reset the iPOd
    Reset iPod touch:  Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Restore from backup
    - Restore to factory defaults/new iPod.
    If still problem your battery is very likely dead.  An appointment at the Genius Bar of an Apple store is in order.

Maybe you are looking for

  • Web part Help button - Where is it?

    I would like to use the web part help mechanism, which seems to be available in the Advanced section when I edit the web part. (see "Help URL" in the image below).  If I place a URL in this box to an htm file and save the web part, I am unclear where

  • Firefox does not maintain magnification set. (Resolution at 1900x1280)

    Computer resolution set to 1900x1280 (HDMI out to HDTV) When browsing, must use the magnifier to be able to read screens. Either by ctrl,+ or by ctrl/mousewheel. As soon as I navigate away from a page, I have to re-magnify everything again. Prior to

  • Obiee nested case when statements

    Hi Obiee Experts, I need to retrieve amounts for 'last september' so i created a column using this case statement: case when MONTH(CURRENT_DATE) <= 9 then (YEAR(CURRENT_DATE) -1) * 100 + 9 END  --  now i want to retrieve the amount for last september

  • HL7 inbound : recommended architecture?

    Hi, What's the best way to process inbound HL7 messages? Some details: 1. Inbound messages will all be ADT 2. There's a lot of common processing, for example the PID segment of every message type will be handled the same. 3. HL7 2.3.1, JCAPS 5.1.3 On

  • Re:Transaction types

    Hi Experts, when i am creating Transaction types in IMG ,i couldn't find the Partner Function ORG field in Profiles Tab. any one can pls suggest me how to get the Partner Function ORG field. pls send me the step by step by config to my mail id:[email