Comapring two Calender Objects  for same Date object

hi,
I am having problem with Comparing two Calender Objects which is having same Date value but time stamp is not same.when i printed as Calender.getTime()---->i found them as.
Cal1----->Wed Feb 28 20:26:29 IST 2007
Cal2------>Wed Feb 28 00:00:00 IST 2007
Now the method:
While(Cal1.getTime().compareTo(Cal2.getTime()) ==0 ) is Evaluating false.
i dont want to be concerned with time stamp.i want condition to be true.
Please help me .thx in advance.
Cheers
Akash

My comment was directed at the fact that you gave the same answer I did, only faster. There is no other way I am aware of that will be any quicker. Of course, that is looking at a small piece of code out of context, so there may well be a better way.
~Tim
Message was edited by:
SomeoneElse

Similar Messages

  • BAM Combo Chart showing data in 2 graphics for the same data object

    Hi all,
    I’m trying to show 2 views of the same data object in a Combo Chart (e.g. orders created today as a bar chart and orders created yesterday as line chart grouping by hour of day). It was pretty easy adding the same data object twice but the data type of the horizontal axis seems to be lost and it gets sorted as a simple string, leading to strange grouping of the hours with 05:00 representing 5 AM sided with 05:00 representing 5 PM. Also, I’m not able to format such fields using the format values tab.
    Is using the same data object two times in the same report an unsupported scenario?
    Thanks,
    Daniel

    why you want to add the same data object twice? Your use case can be achieved with single data object only.
    1) Create combo chart and select the data object.
    2) On "Choose data fields" page group by datetime field.
    3) You will see UI changed to 3 sections - left one with "Group by" section, middle with "Chart values" and right one with "Time Groups".
    4) In the right "Time Group" section, uncheck checkbox for continuous time series. Time Unit as hour, quantity as 1.
    5) In middle "Chart values" section ,select the fields that you want to display as chart values and respective chart types , in your case orders created today as a bar chart and orders created yesterday as line chart.
    5) Click Next and Finish.
    6) Then you can go to Value format tab, and change the format for the datetime field as timeunit and required format.

  • Can two frames use the same SessionInfo object?

    Hi,
    I have some questions on using InfoBus Frame.
    Do parent frame and child frame HAVE TO make use the same
    SessionInfo object?
    I tried to show Master table and Detailed table in seperate
    frame without login twice. I am lucky it works since I happened
    to make two frames have the same SessionInfo object which is
    sessionInfo1 and conmment out sessionInfo1.publishSession()in
    Detailed frame.
    But when I tried to pass Master frame SessionInfo object to
    Detailed frame there is nothing showing up in the detailed frame
    it is just blank frame.
    So two frames have to use the same SessionInfo object . Dose it
    make sense?
    I would really appreciate anyone who can enlighten me on this
    subject.
    Thanks you so much for the attention.
    Julie Chi
    null

    Gopal (guest) wrote:
    : HI,
    : Julie Chi (guest) wrote:
    : : So two frames have to use the same SessionInfo object . Dose
    it
    : : make sense?
    : Yes, if you are working with a master details relation, data
    for
    : both need to be fetched from the same oracle session. So both
    ur
    : frames need to refer the same session. If u refer the detail
    : frame to a different session, u will not see any data, because
    : the information comes from a different oracle session which is
    : not aware of the master data that is fetched. I think it is
    : clear.
    : regards,
    : --Gopal
    1.Use wizard and test the frame
    2.pass the sessioninfo object in parent to child(put method in
    child, call from parent e.g ..getsessionInfo(SessionInfo ss)
    3.pass the sessioninfo object to rowsetinfo in child
    4.add Database authentication (username/password is sufficient)
    methods right before publish method
    *publish activates RowSetInfo and connects to db
    5.add methods in parent to call child
    That should work though depending on how you have set up your
    wizard generated java form, might tweak
    Thanks
    iggy de iguana
    null

  • Create a business object for a Maintenance object

    Hello,
    I want to create a business object for a maintenance object to change all XML attributes to XML elements.
    Should I have to change the whole XML Schema from attributes to elements one by one?
    For example, I create the business object CM_Person_BO for the maintenance object Person, and use the business object to add user in a more standard way.
    But it is a quite large job to rewrite the whole schema for the maintenance object Person, which has following elements, which are PersonIdentifiers, PersonNames, PersonPhones, PersonCharacteristics, Person and SeasAddress.
    Is there any easy way to do it?
    Thanks,
    Kerr

    Should I have to change the whole XML Schema from attributes to elements one by one?
    Is there any easy way to do it?Unfortunately not, you will have to define the schema containing each field/element, once. The primary objective is that you should create a scaled down version of the BO having only the required fields or subset of available fields, you may not need all the fields of a MO. This increases performance as the IO is performed only for specified fields in the BO.
    You can define separate Data Areas for each Person object's context, i.e. Identifiers, Names, Phones, etc. and include them (includeDA) within the Person BO (CM_Person_BO) for clarity.

  • Difference between Service data objects and process data object

    Hi
    Can anybody tell me what is the difference between SDO (Service Data Objects) & PDO (Process Data Objects).I am using 2 port PCI-CAN series 2 card.
    If anybody knows the answer then please reply.
    Thanking You

    Hi,
    See the online help file from our NI CANopen Library for LabVIEW for some basic informations about SDOs and PDOs.
    More information should be available from the web.
    DirkW
    Attachments:
    lvcanopenvhelp.zip ‏154 KB

  • How to arrive same day two difference prices for same material/customer

    how to arrive same day two difference prices for same material/customer.pls give the solution
    thanks in advance
    Aravinthan.K

    Hi
    This is possible through some careful customization
    In your condition table you need to bring the field PRICE LIST
    That is customer/ Material/ Price list
    That is customer  ABCD / Material X / Price list 01---Price is Rs 10
    That is customer  ABCD / Material X / Price list 02---Price is Rs 20
    The condition records to be maintained like this
    So same material and same customer with price list 01 price is Rs 10 and with  price list 02 price is Rs 20
    Now in sales order you will find  price list field in item details SALES B tab
    Through incompletion log you can make this field as an mandatory field
    Now in sales order same material and same customer according to the price lists different price is picked
    In img-sd-basic functions-Maintain Price-Relevant Master Data Fields--here you can define different price lists
    Regards
    Raja

  • What are the two different rules for organizational data determination

    What are the two different rules for organizational data determination???

    Hi
    1) Rule type Responsibilities
    want to determine organizational data for individual responsibilities
    have not created an organizational model but want to create one
    have a lot of organizational units and must only assign a few attributes
    2) Rule type Organizational Model
    You would use rule resolution using organizational model if you
    have created an organizational model or have distributed a plan to SAP CRM and also want to use this for determining organizational data
    assign a lot of attributes to the organizational units and these are to be evaluated
    Regards
    Manohar

  • How to Maintain two different prices for same material in different qty?

    Dear all,
    How to maintain two different prices for same material in different batch quantities in purchase order(ie.,info record)?
    (Vendor is supplying quantities in 2 different batches & also in different prices)
    Expecting valuable reply.
    Jeyakanthan

    In a PO you can create 2 items, and each item can be maintained with a different price in the conditions.
    In info record it is not possible to have different prices for the same period, except for scales.
    so if you have a price of e.g. 2 USD for 1000 kg and 1,90 USD for 2000 kg then you can maintain this in scales, but you still have to have 2 items in the PO so that each one can individually find its price.
    Alternative you can create contracts (as well with more than one item) to reflect the different prices and batches.

  • Need an approach regarding reporting for a one-to-many primary-child relationship, where there are more than three child objects for a primary object for reporting purpose

    Business Scenario- We have a parent organization with 6 different Business Units.One BU requires 9 stages for for Opportunity(Tender) Tracking.The client requirement is to show the basic details of the tender at the header level and to show details specific to individual sales stage as different tabs.There will be multiple opportunity members added as opportunity team and will be responsible for capturing details specific to individual sales stage(tab). The Tab should be enabled and disabled based on the role. Reporting is required against each stage with specific fields of child objects against each opportunity.
    We created multiple children entities under the oportunity(one to many mapping) but we are unable to add more than 3 child objects for a primary object for reporting purpose.
    Kindly suggest what needs to be done to meet the requirement

    Can you provide the exact steps you took to  "created multiple children entities under the oportunity" ?
    Jani Rautiainen
    Fusion Applications Developer Relations
    https://blogs.oracle.com/fadevrel/

  • Two reconciliation account for same one time vendor

    Is it possible to have two reconciliation account for same one time vendor?

    Hi
    1.Two reconciliation account for same one time vendor IS NOT POSSIBLE.
    2.create 2 vendor master for the same ONE TIME VENDOR and maintain the recon account accordingly
    3.Multiple recon a/c can be assigned to a vendor only thru spl g/l indicators but if u go thru this way then we cant use the purchase flow of PO-MIGO-MIRO . Vendor invoice can be passed only thru fb60 using spl gl indicators. Spl gl indicators cannot be used in MIRO.
    Check which will help u
    Thx
    Raja

  • Aperture: two browser windows for same project?

    I know that I can have two browser windows, each showing a different project; I want to have two browsers windows for SAME project. Is there a way to do this?

    Can't be done as far as I know. Here's a link to some tips on multiple tabs in Aperture. http://www.apertureexpert.com/tips/2010/9/7/aperture-has-tabseasily-compare-proj ects.html

  • Folder is empty on second computer. I have installed adobe CC on two different computers for same account so I can work at two different places. I uploaded files to it yesterday and I can't find it on the CC folder on second computer. What can I do?

    I have installed adobe CC on two different computers for same account so I can work at two different places. I uploaded files to it yesterday and I can't find it on the CC folder on second computer. What can I do?

    Hi DeafScientist,
    Please try the below mentioned links.
    Creative Cloud Help | Browse, sync, and manage assets
    Error: "Unable to sync files"
    Creative Cloud File Sync | Known issues
    Kindly revert if you are unable to sync files.
    Thanks,
    Atul Saini

  • Multiple Custom Synch Plugins For Same Business Object

    Can I make multiple plugins for the same business object? The main reason I'm asking is because I want to have one item plugin that runs before the core item data synchs and another item plugin that runs after.
    Since the topic's here, if multiple plugins can be written, which order would two plugins run if they are both set to go off after the core synch?

    That answers half of my question, although just to verify:
    The only issue is the before synch plugin may not have it's data in SBO (eg new order from webtools). If the data initiated in SBO then you should be fine.
    As far as I can tell, you're basically saying that if you're working with data in SBO in a plugin that's set to PluginExecutionLocation.BeforeSynch, be cautious of the fact that new data from Web Tools will not have the plugin run against it because it will arrive after the standard synch brings it over. I would assume the same would be true for the reverse, in that any new data in SBO that's not yet in Web Tools will also not have the plugins run against it for the same reason.
    Also, let's say I create two SynchPlugins for Items and set both of their SynchRunTime fields to PluginExecutionLocation.AfterSynch - which one runs first? Or is it indeterminable each time?

  • Build field catalog for dynamic data objects

    Hi
    Could you please tell me how to build a field catalog (ooops alv)  for an internal table which is a dynamic data object.
      TYPES: BEGIN OF t_addsubty,
             subty TYPE subty,
             pernr TYPE persno,
             END OF t_addsubty.
      TYPES: ty_addsubty type t_addsubty occurs 1.
    i have data object using these
            CREATE DATA dref3 TYPE (g_type1).
            ASSIGN dref3->* TO <fs_dp>.
    where g_type1 refers a data type which i defined in the program. g_type1 = ty_addsubty. 
    now <fs_dp> refers to an internal table.
    now i want to build a field catalog for this internal table.
    In my program <fs_dp> structure is not always the same. i.e now it is ty_addsubty but for some other conditions the structure is different.
    please help me out.
    regards
    badri

    Here some piece of code, which shows how it works:
    <SNIP>
    type-pools:
         abap.
    DATA:
      lr_tabledescr          TYPE REF TO cl_abap_tabledescr,
      lr_structdescr     TYPE REF TO cl_abap_structdescr.
    field-symbols:
      <lw_component>     type abap_compdescr_tab.
    TYPES:
         BEGIN OF t_addsubty,
              subty TYPE subty,
              pernr TYPE persno,
         END OF t_addsubty.
    TYPES:
         ty_addsubty type t_addsubty occurs 1.
    CREATE DATA dref3 TYPE (g_type1).
    ASSIGN dref3->* TO <fs_dp>.
    lr_tabledescr ?= cl_abap_tabledescr=>describe_by_data( <fs_dp> ).
    assert condition lr_tabledescr is bound.
    lr_structdescr ?= lr_tabledescr->get_table_line_type( ).
    loop at lr_structdescr->components assigning <lw_component>.
    *     do whatever you want with the information about
    *     the components of the structure
    endloop.
    </SNIP>
    Do not forget to reward points...

  • Additional attributes for APO data objects

    Hi,
    In order to provide some be-spoke functionality I have a need to extend some APO data objects with additional attributes. This includes: resource, PPM, Order. For all I have identified that I cannot use exisiting fields, therefore my aim would be to add new attributes (either directly or via reference Z-table).
    I have two questions:
    1. What's the easiest way to extended above objects with additional attributes?
    2. Is there a ways to have those additional fields visible for edition from a standard transactions, eg.: /SAPAPO/SCC03, /SAPAPO/RES01, /SAPAPO/RRP5?
    Note: I'm interfacing with non-SAP ERP therefore CIF is not in use, while I see set of BAdis for master data inbound processing. Is this something I could use?
    Thanks,
    Mrx

    Hi,
    As you mentioned, the add. att. are time dependent, it is good to enhance the
    0EMPLOYEE structure to handle not only the Master data attribs but also the
    time dependent add. attributes..which would be executed along with the Master data chain even after the imp.
    Hope this helps..
    assign points if useful..
    Cheers,
    Pattan.

Maybe you are looking for

  • Refresh a graph programmatically

    Hi I'm trying to capture a screenshot af XY graph and print it to a PNG file.  I'm using Write PNG file to print the image which I grab using theget image invoke node. My VI is split inot three frames.   Frame 1 - display VI on the graph Frame 2 - Mo

  • Cannot Install Air on Windows 7

    I am unable to install Adobe Air on my Hp Pavilion laptop which is running Windows 7 x64. I have tried many of the suggestions in this forum but nothing has helped so far. I have listed the log file and MSI log in case anyone can see what is going wr

  • Use an SWF as a Fill

    Does anybody know if it is possible to use an swf file as a fill? So for instance you could embed the swf file into code then use it as a fill for an object and get an animated fill? Or is there another way to achieve something similar? Thank you in

  • Purchased product and subscription not showing

    Hi Yesterday I paid for a one month webbasics+. An invoice was then sent to my inbox. Site Subscription for: rpmglocom.businesscatalust.com (429987) Product Description Unit Price Tax Quantity Total Subscription - webBasics+ - DUS_CMS_M 28-May-2012 t

  • TS1424 Whenever i purchase or download an app on the app store , it always gives me this error message " unable to purchase at this time, please try again later"

    Whenever i purchase or download an app on the app store , it always gives me this error message " unable to purchase at this time, please try again later"