How to get this date format

Hi all,
i have a very simple query.
I have  report name like this "SALES REPORT DATE FOR "+Year(CurrentDate())
and it is showing result of SALES REPORT DATE FOR 2,014
but i want report look like SALES REPORT DATE FOR 2014
how i can change the year format form 2,014 to 2014
i am using 3.1
Thanks in advance
Ranjeet

Hi
Find the below link
BI4.1 Business Layer Enhancements - Create Display Format

Similar Messages

  • How can i get this date format

    i want to convert my date format to
    YYMMDDHHMMSS
    so lets say
    select format_date (sysdate YYMMDDHHMMSS ) from dual
    out put
    090612040957
    help please
    Edited by: kama021 on Jun 13, 2009 9:05 AM
    Edited by: kama021 on Jun 13, 2009 9:06 AM

    Hi Kama, try these and spot the difference:
    MHO%xe>  select to_char(sysdate, 'YYMMDDHHMMSS') from dual
      2  /
    TO_CHAR(SYSD
    090613060625
    1 rij is geselecteerd.
    Verstreken: 00:00:01.21
    MHO%xe> --that was totally WRONG, use :
    MHO%xe> select to_char(sysdate, 'YYYYMMDDHHMISS') from dual
      2  /
    TO_CHAR(SYSDAT
    20090613060758
    1 rij is geselecteerd.
    edit
    Using 2 digits for century = soooooo 1970's....
    I suggest you read op on presenting dates here:
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14251/adfns_sqltypes.htm#sthref442
    Edited by: hoek on Jun 13, 2009 6:10 PM

  • How to get this report format out ?

    Hello all experts,
    Sample table creations like the following. Note checkno under xcheck table is not unique. Have tried pivotting the xcheck table then link pivoted xcechk with xcert using certno and invno but this willl end up getting duplicate records. Can u please help ? Basically I am stuck at how to get that vendor name out on the report
    create table xcert(
    certseq number primary key,
    certno varchar2(5) not null,
    vendor varchar2(25));
    create table xcheck(
    checkseq number primary key,
    checkno varchar2(8) not null,
    invno varchar2(100);
    Xcert Data
    certseq certno     vendor
    1     C1001     BP GAS
    2     C1002     BUG PEST CONTROL
    3     C1003     BP GAS
    4     C1004     BP GAS
    5     C1005     WILLIES BESTxcheck Data
    checkseq     checkno          invno
    1          EF500001     C1001,C1003,C1004
    2          EF500002     C1002
    3          EF500002     C1005Looking for a following report format
    checkno          invno               vendor
    EF500001     C1001,C1003,C1004     BP GAS
    EF500002     C1002               BUG PEST CONTROL
    EF500002     C1005               WILLIES BEST      Thank you
    Munshar

    Hi, Munshar,
    MunSharmi wrote:
    Frank,
    "I don't see why you would need another column. What would you need to store, or retrieve, that a table like this wouldn't allow?
    Notice my orignal xcheck table data plus a check date column
    {code}
    checkseq     checkno          invno               checkdate
    1          EF500001     C1001,C1003,C1004     11/01/2010
    2          EF500002     C1002               12/10/2010          
    3          EF500002     C1005               01/01/2011
    {code}Sure, if you have other data that you haven't mentioned yet, then you need other columns, and maybe even other tables, to store that data.
    Talking about this would be a lot easier if you described what you were trying to model in these tables, and what the different entities are.
    after nomalization
    {code}
    seq(PK)     checkseq     checkno          invno               checkdate
    1     1          EF500001     C1001               11/01/2010
    2     1          EF500001     C1003               11/01/2010
    3     1          EF500001     C1004               11/01/2010
    4     2          EF500002     C1002               12/10/2010          
    5     3          EF500002     C1005               01/01/2011
    {code}What do checkseq and checkdate represent? What is the realtionship between them? If there is another row with checkseq=3, will it necessarily have checkdate=01/01/2011? If there is another row with checkdate=01/01/2011, will it necessarily have checkseq=3?
    Shouldn't I need to have the extra seq(PK), then use check seq to group the data report to meet users' target format ? Please adviseIt depends on what your entities are. If you explain that, then perhaps I can give some advice about how to model them.
    In general, every type of entity requires a separate table. It looks like xcert represents one kind of entity, uniquely identified by certno. I assume there is some other kind of entity, uniquely identified by checkno, and that you have a table for that which you haven't needed to show in this thread.
    Are you saying that there's some other entity, that is uniquely identified by checkseq? If so, it probably needs a table of it's own.
    Every table should have a primary key. I had assumed that checkseq only served as the primary key of the xcheck table. If it serves some other purpose, then yes, you would need another column.
    Many-to-many relationships usually require a separate table. I was guessing that xcheck was intended to record a many-to-many realtionship between xcert and some other table. Guessing is not always the best way to solve problems. I think it would be better if you explained what you want to do, rather than have me guess at it.
    So far, what you've shown is analagous to an order entry system. One kind of entity is customer, another is supplier. Say you're running a company that sells products from many suppliers to many customers. There is a many-to-many relationship between customers and suppliers. Any customer may buy from many suppliers; any supllier may sell to many cutomers. You may have an orders table that keeps track of that many-to-many relationship. You may also have another entity, salesman, that also has many-to-many relationships with customers and suppliers. Depending on what exactly you consider an "order", there are lots of different ways to model this. Can a single order involve many customers? Can a single order involve many suppliers? Can a single order involve many salesmen? If an order always involves one customer buying from one supplier using one salesman, then you may only need four tables. If the situation is more complicated, then you may need more tables.

  • How to get this output format in ALV report

    Hi.
    Can any one pls let me know how to get the following output format in ALV report.Following are the outputfields
    companycode   location     position     approver
    300    800       01    watson
    null   null        03     candy
    null   null        04     smith
    null   null        05     michael
    one empty line after this again
    300     800     01     ryant
    null      null    02     gyan
    null      null    03     fermi
    null      null    04     ogata
    *Note: Null     indicates  empty space .( i.e I need to get empty space in  output where ever null is there.)
            Thanks in advance.
    Kind Regards,
    samiulla.

    hi,
    u can use 'REUSE_ALV_LIST_DISPLAY'
                           or
    'REUSE_ALV_GRID_DISPLAY'  function modules.
    SAMPLE CODE :
    *& Report  Y101982CHD
    *                         TABLES
    TABLES: vbak.    " standard table
    *                           Type Pools                                 *
    TYPE-POOLS: slis.
    *                     Global Structure Definitions                     *
    *-- Structure to hold data from table CE1MCK2
    TYPES: BEGIN OF tp_itab1,
           vbeln LIKE vbap-vbeln,
           posnr LIKE vbap-posnr,
           werks LIKE vbap-werks,
           lgort LIKE vbap-lgort,
           END OF tp_itab1.
    *-- Data Declaration
    DATA: t_itab1 TYPE TABLE OF tp_itab1.
    DATA : i_fieldcat TYPE slis_t_fieldcat_alv.
    *                    Selection  Screen                                 *
    *--Sales document-block
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-t01.
    SELECT-OPTIONS: s_vbeln FOR vbak-vbeln.
    SELECTION-SCREEN END OF  BLOCK b1.
    *--Display option - block
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-t02.
    PARAMETERS: alv_list RADIOBUTTON GROUP g1,
                alv_grid RADIOBUTTON GROUP g1.
    SELECTION-SCREEN END OF  BLOCK b2.
    *file download - block
    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-t03.
    PARAMETERS: topc AS CHECKBOX,
                p_file TYPE rlgrap-filename.
    SELECTION-SCREEN END OF  BLOCK b3.
    *                      Initialization.                                *
    *                      At Selection Screen                            *
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL FUNCTION 'F4_DXFILENAME_4_DYNP'
        EXPORTING
          dynpfield_filename = 'P_FILE'
          dyname             = sy-cprog
          dynumb             = sy-dynnr
          filetype           = 'P'      "P-->Physical
          location           = 'P'     "P Presentation Srever
          server             = space.
    AT SELECTION-SCREEN ON s_vbeln.
      PERFORM vbeln_validate.
    *                           Start Of Selection                         *
    START-OF-SELECTION.
    *-- Fetching all the required data into the internal table
      PERFORM select_data.
    *                           End Of Selection                           *
    END-OF-SELECTION.
      IF t_itab1[] IS NOT INITIAL.
        IF topc IS NOT INITIAL.
          PERFORM download.
          MESSAGE 'Data Download Completed' TYPE 'S'.
        ENDIF.
        PERFORM display.
      ELSE.
        MESSAGE 'No Records Found' TYPE 'I'.
      ENDIF.
    *                           Top Of Page Event                          *
    TOP-OF-PAGE.
    *& Form           :      select_data
    * Description     : Fetching all the data into the internal tables
    *  parameters    :  none
    FORM select_data .
      SELECT vbeln
         posnr
         werks
         lgort
         INTO CORRESPONDING  FIELDS OF TABLE t_itab1
         FROM vbap
         WHERE  vbeln IN s_vbeln.
      IF sy-subrc <> 0.
        MESSAGE 'Enter The Valid Sales Document Number'(t04) TYPE 'I'.
        EXIT.
      ENDIF.
    ENDFORM.                    " select_data
    *& Form        : display
    *  decription  : to display data in given format
    * parameters   :  none
    FORM display .
      IF alv_list = 'X'.
        PERFORM build_fieldcat TABLES i_fieldcat[]
                               USING :
    *-Output-field Table      Len  Ref fld Ref tab Heading    Col_pos
       'VBELN'       'T_ITAB1'     10   'VBAP'  'VBELN'    ''            1,
       'POSNR'       'T_ITAB1'     6    'VBAP'  'POSNR'    ''            2,
       'WERKS'       'T_ITAB1'     4    'VBAP'  'WERKS'    ''            3,
       'LGORT'       'T_ITAB1'     4    'VBAP'  'LGORT'    ''            4.
        *CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'*
          *EXPORTING*
            *i_callback_program       = sy-repid*
    **        i_callback_pf_status_set = c_pf_status*
            *i_callback_user_command  = 'USER_COMMAND '*
    **        it_events                = t_alv_events[]*
            *it_fieldcat              = i_fieldcat[]*
          *TABLES*
            *t_outtab                 = t_itab1[]*
          *EXCEPTIONS*
            *program_error            = 1*
            *OTHERS                   = 2.*
        *IF sy-subrc <> 0.*
    ** MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO*
    **         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.*
        *ENDIF.*
      ENDIF.
      IF alv_grid = 'X'.
        PERFORM build_fieldcat TABLES i_fieldcat[]
                                 USING :
    *-Output-field Table      Len  Ref fld Ref tab Heading    Col_pos
         'VBELN'       'T_ITAB1'     10   'VBAP'  'VBELN'    ''            1,
         'POSNR'       'T_ITAB1'     6    'VBAP'  'POSNR'    ''            2,
         'WERKS'       'T_ITAB1'     4    'VBAP'  'WERKS'    ''            3,
         'LGORT'       'T_ITAB1'     4    'VBAP'  'LGORT'    ''            4.
        *CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'*
          *EXPORTING*
            *i_callback_program       = sy-repid*
    **        i_callback_pf_status_set = c_pf_status*
            *i_callback_user_command  = 'USER_COMMAND '*
            *it_fieldcat              = i_fieldcat*
          *TABLES*
            *t_outtab                 = t_itab1[]*
        *EXCEPTIONS*
       *program_error                     = 1*
       *OTHERS                            = 2.*
        *IF sy-subrc <> 0.*
    ** MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO*
    **         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.*
        *ENDIF.*
      *ENDIF.*
    ENDFORM.                    " display
    *& Form        : vbeln_validate
    *  description : to validate sales document number
    * parameters   :  none
    FORM vbeln_validate .
      DATA: l_vbeln TYPE vbak-vbeln.
      SELECT SINGLE vbeln
        FROM vbak
        INTO l_vbeln
        WHERE vbeln IN s_vbeln.
      IF sy-subrc NE 0.
        MESSAGE 'ENTER THE VALID SALES DOCUMENT NO:' TYPE 'I'.
        EXIT.
      ENDIF.
    ENDFORM.                    " vbeln_validate
    *& Form       :build_fieldcat
    * Description : This routine fills field-catalogue
    *  Prameters  : none
    FORM build_fieldcat TABLES  fpt_fieldcat TYPE slis_t_fieldcat_alv
                        USING   fp_field     TYPE slis_fieldname
                                fp_table     TYPE slis_tabname
                                fp_length    TYPE dd03p-outputlen
                                fp_ref_tab   TYPE dd03p-tabname
                                fp_ref_fld   TYPE dd03p-fieldname
                                fp_seltext   TYPE dd03p-scrtext_l
                                fp_col_pos   TYPE sy-cucol.
    *-- Local data declaration
      DATA:   wl_fieldcat TYPE slis_fieldcat_alv.
    *-- Clear WorkArea
      wl_fieldcat-fieldname       = fp_field.
      wl_fieldcat-tabname         = fp_table.
      wl_fieldcat-outputlen       = fp_length.
      wl_fieldcat-ref_tabname     = fp_ref_tab.
      wl_fieldcat-ref_fieldname   = fp_ref_fld.
      wl_fieldcat-seltext_l       = fp_seltext.
      wl_fieldcat-col_pos         = fp_col_pos.
    *-- Update Field Catalog Table
      APPEND wl_fieldcat  TO  fpt_fieldcat.
    ENDFORM.                    "build_fieldcat
    *& Form        : download
    *  description : To Download The Data
    *  Parameters  :  none
    FORM download .
      DATA: l_file TYPE string.
      l_file = p_file.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename                = l_file
          filetype                = 'ASC'
        TABLES
          data_tab                = t_itab1
        EXCEPTIONS
          file_write_error        = 1
          no_batch                = 2
          gui_refuse_filetransfer = 3
          invalid_type            = 4
          no_authority            = 5
          unknown_error           = 6.
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " download
    HOPE IT WILL HELP YOU
    REGARDS
    RAHUL SHARMA

  • How to get the Date format inside the table

    I have a startdate column in the db in the format May 5, 2001 12:39:00 PM, when I query it from a view in this way : SELECT startdate, ... FROM ..., it returns the format in the db,
    However I have to do this SELECT
    decode(startdate, null, 'NOT START'), startdate), ... the result is 5-MAY-01,
    then I tried this to_char(startTime, 'Month DD, YYYY HH:MI: A.M.') the results become May 05, 2001 12:39:00 PM. (more space between month and day, and 05 instaed of 5)
    Does anybody know how to fix this, so I get exactly what is in the db?
    Thanks in advance

    No matter what you do if you are storing a date in a column it will get stored in the Oracle's internal 7 byte date format.
    The way you get it on retreiving it is as set by your date format. You can either change the default date format for the instance, the individual session or the individual SQL statement(in this case using to_char(date, 'format')).
    If you want to store the date in a format you want to store you'll have to store it as char or varchar2.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by George ([email protected]):
    I have a startdate column in the db in the format May 5, 2001 12:39:00 PM, when I query it from a view in this way : SELECT startdate, ... FROM ..., it returns the format in the db,
    However I have to do this SELECT
    decode(startdate, null, 'NOT START'), startdate), ... the result is 5-MAY-01,
    then I tried this to_char(startTime, 'Month DD, YYYY HH:MI: A.M.') the results become May 05, 2001 12:39:00 PM. (more space between month and day, and 05 instaed of 5)
    Does anybody know how to fix this, so I get exactly what is in the db?
    Thanks in advance<HR></BLOCKQUOTE>
    When you do to_char() with 'month' oracle blank pads the month to nine characters, the same goes with day too. So to get rid of it you'll have to trim() the month. And if you want to get a single digit for date less than 10 instead of 0x you'll have to do a bit of extra jugglery using translate() or replace().
    Hope this helps
    Naveen

  • How to get ISO date format?

    Hi there,
    I'm having problem converting date to ISO format. How do I convert a date in the form of "Tue Sep 25 10:18:59 PDT 2007" to "20070925101859" ? Basically I am trying to get the date in "yyyymmddhhmmss". Below is my code, I keep getting "Tue Sep 25 10:18:59 PDT 2007", please help:
    beginDateAsDate = new Date();
    SimpleDateFormat sdf = new SimpleDateFormat("yyyymmddhhmmss");
    sdf.format( beginDateAsDate );
    endDateAsDate = beginDateAsDate;
    Calendar c1 = Calendar.getInstance();
    c1.setTime(beginDateAsDate);
    c1.add(Calendar.YEAR,2);
    endDateAsDate = c1.getTime();
    System.out.println("Begin Date is: " beginDateAsDate.toString());+
    System.out.println("End Date is: " endDateAsDate.toString());          +
    Output:
    Begin Date is: Tue Sep 25 10:18:59 PDT 2007
    End Date is: Fri Sep 25 10:18:59 PDT 2009

    Use SimpleDateFormat, but don't forget to do this first:
    sdf.setTimeZone(TimeZone.getTimeZone("UTC"));

  • How to get this data in CR

    not sure if it can be done in the Crystal report, but still want a help
    i have one column could show once or multiple times, and i need to count how many records show once, and how many records show multiple time, for example
    Column1  Column2
    win          xx1
    win          xx2
    win          xx3
    win          xx3
    win          xx4
    win          xx4
    win          xx4
    win          xx5
    if column2 record show once, it is stand alone server, if column2 record show multiple time, it is virtual server, so i want to show
    stand alone server    3
    virtual server             2
    is there a way to get this done in CR?
    thanks

    So you need to show the counts by type at the end of your report, not in the middle of reading the data, correct?
    Here's what I would do:
    1. Create a subreport and place it in your report footer.  You'll use essentially the same query in the subreport as you do in the main report and if you have any parameters in the main report, use them to link to the subreport.
    2.  Group the sub report by column 1.
    3.  Create two formulas that look something like this:
    {@StandAlone}
    If (PreviousIsNull({table.column2}) or {table.column2} <> previous({table.column2})) and (nextIsNull({table.column2}) or {table.column2} <> next({table.column2})) then 1 else 0
    {@Virtual}
    If {table.column2} = next({table.column2}) and ( PreviousIsNull({table.column2}) or {table.column2} <> previous({table.column2}) ) then 1 else 2
    4.  Sum each of these formulas at the column1 group level to get your counts.
    -Dell

  • How to get this data : QAPO-PRPLATZ

    Dear All ,
    I have a Lot Number , all the him characteristic and i need to take only this information :
    QAPO-PRPLATZ (I think that is the operation name)
    How can i get the data ?
    Wich is the correct way ?
    Thanks

    Dear Ramudu  ,
    My scenario is this :
    I have to change a SAP Program that extracts all the lots created/edited since an input date and all the lots characteristics that was changed/inserted since an input date . . .
    The last version of this program is using the Logical DB now i have to create a new version
    that extract the data by a query that works on edit/creation date . . .
    If i have understood i have to launch for each lots the function module : PM_ORDER_GET_HIERARCHY .
    May the performance falls in this way ?
    There are any other way to find QAPO data ?
    Thank you very much.

  • How to print this date format: eg. 14-Aug-2002 01:26:36 PM?

    Can anyone tell me exactly how to print this format?

    This is how we can produce the output you specified.
    import java.util.*;
    import java.text.*;
    //14-Aug-2002 01:26:36 PM?
    class Test
         public static void main(String args[])
              //Date b=new Date();
              //System.out.println(b.toString());
              // Format the current time.
              SimpleDateFormat formatter = new SimpleDateFormat ("dd-MMM-yyyy ' ' hh:mm:ss a");
              Date currentTime_1 = new Date();
              String dateString = formatter.format(currentTime_1);
              System.out.println(dateString);
    }//end of Test.

  • How to get this data in the WebI

    Hi There
    i have a WebI report, the data looks like this
    userName    Type
    Mike              DT
    Mike              NB
    Susan           DT
    Colleen          DT
    Colleen          NB
    i only need to pick up Mike and Colleen, cause only they have both DT and NB, how can i get the data like this?
    thanks

    Create a variable as below:
    [ctgt1type]=Count([type]) ForEach([username]) In Report>1
    Then create a filter with this condition:
    [ctgt1type]=1
    This might work. I tried this with the Islands marketing universe selecting customer and country to display only customers with multiple countries. But your original soulton is more elegant and with report level filters more development and maintenance efforts are required
    Edited by: Uvee on Nov 2, 2011 2:24 PM

  • How to get the date format yyyy-mm-dd?

    Hi,
    I have an iphone (3.1.2) and would like to use the date format yyyy-mm-dd (international date format). Is the possible? If yes, how?
    Cheers

    I know of no other way to set the date format other than what I mentioned in my previous post. There are third party apps that will do what you want in the app. store, but they are not permitted to access the underlining software.

  • How to get this date range

    Respecetd guru's,
    i have task to represent this date range start date to end date in every month.
    it show like this..
    01-sep-2009 to 30-sep-2009
    so on...
    plez help me.

    may be you are looking for this
    SQL> SELECT        TO_CHAR (TRUNC (ADD_MONTHS (SYSDATE, LEVEL), 'mm'),
      2                         'dd-mon-yyyy'
      3                        )
      4             || ' to '
      5             || TO_CHAR (LAST_DAY (ADD_MONTHS (SYSDATE, LEVEL)), 'dd-mon-yyyy')
      6                                                                             dt
      7        FROM DUAL
      8  CONNECT BY LEVEL <= 4;   -- change the range here instead of 4 to get a long range
    DT
    01-oct-2009 to 31-oct-2009
    01-nov-2009 to 30-nov-2009
    01-dec-2009 to 31-dec-2009
    01-jan-2010 to 31-jan-2010to get starting from 01-sep-2009
    use like this
    SQL> SELECT        TO_CHAR (TRUNC (ADD_MONTHS (SYSDATE, LEVEL-1), 'mm'),
      2                         'dd-mon-yyyy'
      3                        )
      4             || ' to '
      5             || TO_CHAR (LAST_DAY (ADD_MONTHS (SYSDATE, LEVEL-1)), 'dd-mon-yyyy')
      6                                                                             dt
      7        FROM DUAL
      8  CONNECT BY LEVEL <= 4;
    DT
    01-sep-2009 to 30-sep-2009
    01-oct-2009 to 31-oct-2009
    01-nov-2009 to 30-nov-2009
    01-dec-2009 to 31-dec-2009Edited by: Qwerty on Sep 8, 2009 8:51 PM

  • How to get the Date in a particular format?

    Hi,
    How to get the Date in the below format? I will be passing the year in my method..
    2/10/2003 9:46:52 PM
    D/M/YYYY H:M:S A
    public Date getDate (String year) {
    Here i want to get the Date in this format
    2/10/<Passed Year> 9:46:52 PM
    Thanks

    This is my code
    public static Date getCalendar(Calendar calendar,int getYear) {
    String      formatted_date="";
         int year = getYear;
         int month = calendar.get(Calendar.MONTH+1);
         int day = calendar.get(Calendar.DATE);
         int hour = calendar.get(Calendar.HOUR);
         int min = calendar.get(Calendar.MINUTE);
         int sec = calendar.get(Calendar.SECOND);
         int am_pm =calendar.get(Calendar.AM_PM);
         formatted_date = month+"/"+day+"/"+year+" "+hour+":"+min+":"+sec+" PM";
         System.out.println("formatted_date is "+formatted_date);     
         o/p : formatted_date is 1/4/2006 1:44:21 PM
         SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
    //     DateFormat dateFormat =DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT);
         Date passdate = new Date();
         try {
              passdate = dateFormat.parse(formatted_date);
         } catch (ParseException e) {
              System.out.println("Invalid Date Parser Exception "+e.getLocalizedMessage()+"DateFormat is "+dateFormat);
              System.out.println("The Date inside the function is "+passdate+"and the year passed is "+year);
    o/p : The Date inside the function is Sat Apr 01 00:00:00 IST 2006and the year passed is 2006
         return passdate;
    Expected O/P is 3/1/2006 1:44:12 PM
         }

  • How to get the right format if I copy data off another source....

    IWorks '08
    I have a data source that I want to copy to Numbers and it posts it all in the first row, when I paste it. (Excel will automatically format it correctly). I've tried a number of different things and can't figure out how to get the data to post across the page. Can Numbers even do this?

    Welcome to Apple Discussions
    Could you possibly have the insertion cursor blinking in the cell rather than just having a cell selected?
    If the cursor is blinking in the cell, Numbers "thinks" you want to paste all of the content in that one cell. By just selecting the cell, the data will be separated if Numbers "sees" the separations. This used to be a problem, particularly with data copied from a web page in Safari, but is mostly fixed in Numbers '09.

  • How to get the date time format in OCI

    How to get a date time format in OCI instead of only date

    You would have to use the OCIDateTime datatype for this. Refer to
    OCI documentation for more details.

Maybe you are looking for

  • IPod will not update AT ALL

    I have owned this iPod Shuffle for about seven months, and it worked perfectly fine until about a month or two ago when it would not let me change the songs on the iPod. I manually deleted all the songs off of the iPod in iTunes, and added a whole ne

  • Graphics for dreamwaver

    Hi, I am currently learning Dreamwaver and I would like to know what's the best and easiest adobe program to use to prepare graphics for my sites. Thanks.

  • For SU01 automatically addition of field extension with  "0" in child system

    Hi Ids and roles are created through CUA and then it is distributed in the child systems. However in one of the child system, the users are automatically assigned a value 0 in extension field of SU01. This is then not allowing the program RSEOUT01 to

  • How to see the installed BI content process chain?

    Hi Expert, I've installed a BI content process chain, called 0TCT_MD_C_FULL_P01, but I can not see it in tcode RSPC, also can not use it. Can you tell how to make it available in RSPC? Thanks a lot. Happy.Bear

  • Checking Unchecking of JCheckBox value  inside JTable cell

    My problem is that i have jtable which has table data. In that first column has jcheckbox values which are there because of the tabledata has firstcolumn values as boolean, to know the no of checks in jcheckboxes in jtable, there is count variable wh