Retrieve current date

I have the need to retrieve the current date in a parameter, to have the default report in the current date. Anyone knows how is it possible?
Thanks

The following is a tiny program that I wrote just to see if I can simulate your problem:
import java.util.*;
public class testDate {
   public static void main(String[] args) {
      Date d=new Date();
      System.out.println(d);
}I am running JDK1.3.1 (but that shouldn't matter) on Windows 98SE and I am in CST. I was able to run the program without any problem at all....even after changing the time zone in my PC to several different time zones. Why don't you give my program a trial and see if you still have the problem.
V.V.

Similar Messages

  • Lost recovery key and need to retrieve current data

    Yeah.
    It's a really nasty situation.
    In order to get back into Sync i have to generate a new recovery key
    But the recovery key generator will mangle the synced data.
    Is there any way to retrieve the data?.
    I haven't been able to sync with Firefox on Android and few days ago my harddrive gave up so I had to reinstall windows.

    If you don't have a 2nd device connected to that Sync account so you can "pair" them, AND you don't have the Sync Key that was used to encrypt your data as it was being uploaded to the Sync servers, you data can't be recovered.
    Did the reinstallation of Windows save any of your old data files? <br />
    Like maybe the \roaming\''user''\app data\Mozilla\Profiles folderset?

  • Need help with SQL retrieval for previous month till current date

    Hi ,
    Need help generating statistics from previous month from date of enquiry till current date of enquiry.
    and have to display it according to date.
    Date of enquiry : 03/02/2012
    Application Type| 01/01/2012 | 02/01/2012 | 03/01/2012 |...... | 31/01/2012 | 01/02/2012 | 02/02/2012 | 03/02/2012 |
    sample1 20 30 40
    sample 2 40 40 50
    sample 3 50 30 30
    Hope you guys can help me with this.
    Regards

    Hi,
    932472 wrote:
    Scenario
    1)If i run the query at 12 pm on 03/2/2012. the result i will have to display till the current day.
    2)displaying the count of the application made based on the date.
    Application type 01012012 | 02012012 | 03012012 | ..... 01022012| 02022012|03022012
    sample 1 30 40 50 44 30
    sample 2 35 45 55
    sample 3 36 45 55Explain how you get those results from the sample data you posted.
    It would help a lot if you posted the results in \ tags, as described in the forum FAQ. {message{id=9360002}
    SELECT     application_type as Application_type
    ,     COUNT (CASE WHEN created_dt = sysdate-3 THEN 1 END)     AS 01012012 (should be getting dynamically)
    ,     COUNT (CASE WHEN created_dt = sysdate-4 THEN 1 END)     AS 02022012
    ,     COUNT (CASE WHEN created_dt = sysdate-5 THEN 1 END)     AS 03022012
    , COUNT (CASE WHEN created_dt = sysdate-6 THEN 1 END)     AS 04022012
    FROM     table_1
    GROUP BY application_type
    ORDER BY     application_typeThat's the bais idea.
    You can simplify it a little by factoring out the date differences:WITH got_d     AS
         SELECT     qty
         ,     TRUNC ( dt
              - ADD_MONTHS ( TRUNC (SYSDATE, 'MON')
                        , -1
              ) AS d
         FROM table1
         WHERE     dt     >= ADD_MONTHS ( TRUNC (SYSDATE, 'MON')
                        , -1
         AND dt     < TRUNC (SYSDATE) + 1
    SELECT     SUM (CASE WHEN d = 1 THEN qty END)     AS day_1
    ,     SUM (CASE WHEN d = 2 THEN qty END)     AS day_2
    ,     SUM (CASE WHEN d = 62 THEN qty END)     AS day_62
    FROM     got_d
    See the links I mentioned earlier for getting exactly the right number of columns, and dynamic column aliases.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How do I retrieve lost data from my phone

    1.previously sync/downloaded iphone to a pc
    2.February during a sync process, i unplugged the cord.
    download was not completed.
    3.Lost info from February to May
    4.How do I retrieve #3 above.
    5. Need to sync current data
    Happy Labor Day

    Thank you for responding
    correction.
    I previously synced my iphone to my pc.
    After May, I was trying to recync my iphone 3 to the pc again.
    prematurely unplugged the download.
    now my feb-May data is lost on the iphone, but according to the apple store,  it is still on my pc.
    apple store said i have to call customer svc to retrieve this data from my computer.
    it is doable.

  • How to get the current data and time of SCOM server via SCOM SDK (API) calls?

    Hi,
    I need to read the current date and time of SCOM server via SOM SDK.
    Is there a class in SDK that provides this info ?
    Thanks,
    satheesh

    To get time and date of Alerts of SCOM, You can use following command let "get-scomalert"
    Also, You can refer below links
    http://blog.tyang.org/2013/02/21/using-scom-2012-sdk-to-retrieve-resource-pools-information/
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer"
    Mai Ali | My blog: Technical

  • Current date in xslt mapping

    Hi,
    I've tried to get the current date in my xslt mapping.
    I've used the following xslt coding:
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:date="http://exslt.org/dates-and-times" extension-element-prefixes="date">
    <xsl:template match="/">
    <xsl:variable name="now" select="current-date()"/>
    </xsl:template>
    </xsl:stylesheet>
    In stylus studio everything is OK and i retrieve the current date.
    When i import the xslt in the mapping tool and test the mapping i get the following error:
    javax.xml.transform.TransformerException: com.sap.engine.lib.xml.util.NestedException: Function with name 'current-date' not found in context library. at com.sap.engine.lib.jaxp.TransformerImpl.transform(TransformerImpl.java:251)
    While directly using the current date functionality within the message mapping everything is OK too.
    Does anyone know which date-functionality is used within the message mapping within the Integration Builder and/or wich mapping to be used in xslt for a working scenario?
    Thnx in advance!

    Ok thnx, these anwers where very helpfull for me to solve this problem.
    I've awarded points for all your answers.
    For anyone interested later on, I needed the date in my XSLT mapping in the following format ddMMMyy.
    Finnally I used the following xslt to achieve this:
         <xsl:template name="currentDate" xmlns:cal="java:java.util.GregorianCalendar">
              <xsl:variable name="now" select="cal:getInstance()" />
              <xsl:variable name="day" select="cal:get($now, 5)" />
              <xsl:variable name="month" select="cal:get($now, 2) + 1" />
              <xsl:variable name="year" select="substring(string(cal:get($now, 1)), 3, 2)" />
              <xsl:variable name="month">
                   <xsl:choose>
                        <xsl:when test="$month=1">Jan</xsl:when>
                        <xsl:when test="$month=2">Feb</xsl:when>
                        <xsl:when test="$month=3">Mar</xsl:when>
                        <xsl:when test="$month=4">Apr</xsl:when>
                        <xsl:when test="$month=5">May</xsl:when>
                        <xsl:when test="$month=6">Jun</xsl:when>
                        <xsl:when test="$month=7">Jul</xsl:when>
                        <xsl:when test="$month=8">Aug</xsl:when>
                        <xsl:when test="$month=9">Sep</xsl:when>
                        <xsl:when test="$month=10">Oct</xsl:when>
                        <xsl:when test="$month=11">Nov</xsl:when>
                        <xsl:when test="$month=12">Dec</xsl:when>
                        <xsl:otherwise>INVALID MONTH</xsl:otherwise>
                   </xsl:choose>
              </xsl:variable>
              <xsl:choose>
                   <xsl:when test="$day &lt; 10">
                        <xsl:value-of select="concat(concat(concat('0',$day), $month), $year)"/>
                   </xsl:when>
                   <xsl:otherwise>
                        <xsl:value-of select="concat(concat($day, $month), $year)"/>
                   </xsl:otherwise>
              </xsl:choose>
         </xsl:template>

  • Current Date Field question

    Hello
    I'm a novice user of LiveCycle and I'm trying to see if there's a solution for this issue we've come across.
    We've used LiveCycle to redesign human resource/payroll forms in our organization. One of the items we use is the current date field, which automatically populates to today's date once opened. When users complete forms, we encourage them to save an electronic copy of the form to their own drive in case they need to retrieve it at a later date. The problem here is that the current date field will not stay static once filled out and saved.
    For example, if a dept completes a form on 12/1/10, saves it, but then needs to retrieve it later for some reason, we need the current date field to stay as the date the form was originally filled out (12/1/10). If they retrieve the form later on say 2/15/10, that particular date field will read the new date. Is this possible?
    Thanks for any help!

    Test if the field is null before assigning the current date.
    // form1.page1.currentDate::ready:layout - (FormCalc, client)
    if (this.isNull) then
      $.rawValue = Concat(Num2Date(Date(), "MM/DD/YYYY"))
    endif
    Steve

  • Prompt with Default date (Current Date)

    Hi Experts,
    I have WEBI Report With Calendar Date (0CALDAY) Object on a OLAP Universe (OLAP Universe built on SAP BW BEx Query).
    I need to create a prompt on Calendar Date Object with default value as Current date (systemdate). I need to create this at universe level not at BEx level (No Exceptions).
    Looking forward to hear from you.
    -Thanks,
    Deepu

    Hi Ingo,
    Thanks for your response.
    >
    Ingo Hilgefort wrote:
    > this is because a EXIT VAriable doesn't have a DEFAULT value.
    >
    > Ingo
    But EXIT Variable has a DEFAULT value in BEx Designer. DEFAULT Value (Current system Date) is populated when a BEx Query is Run. How come it is not properly reflected into BOBJ?. It retrieves the data for Current system Date in BOBJ too when WEBI Query is run but it does not show Current system Date in prompt screen.
    I hope you understand my problem.
    -Thanks,
      DEEPU.

  • Time field also displaying current date

    Hi there
    I have two databound fields (to a Sybase back-end) - one is a date field, the other a time field!
    The date field works fine, but the time field is displaying the current date as well as the data retrieved time!
    The field is set to:-
    Data pattern: HH:MM::SS
    Data Format: Time
    Type: Date/Time Field
    Validation Pattern: HH:MM:SS
    The field is defined as 'time' in Sybase, and displays just the time in other objects (.NET fields...).
    Anyone any ideas?

    not the cleanest code, but i had this laying around in an old
    project...
    date = new Date()
    month = date.getMonth() + 1
    today = date.getDate()
    fyear = date.getFullYear()
    hours = date.getHours()
    minutes = date.getMinutes()
    seconds = date.getSeconds()
    if(month <10){
    month = "0"+month
    if(today<10){
    today = "0"+today
    if(hours <10){
    hours = "0"+hours
    if(minutes <10){
    minutes = "0"+minutes
    if(seconds <10){
    seconds = "0"+seconds
    CurrentTime.text = month+"/"+today+"/"+fyear+"
    "+hours+":"+minutes+":"+seconds

  • Retrieval of dates from Personnel Work Schedule Records.

    Hi friends,
    I need to develop a user exit in which retrieves dates for a current calendar year.
    For Eg: For Calendar year 2008 There are 2 workschedules .
    1) From 06/01/08 to 12/31/08 (Current record)
    2) From 01/01/08 to 05/31/08 (Immediate previous record)
    I have used the Function Module 'HR_PERSONAL_WORK_SCHEDULE' to retrieve PWS and then sorted it in reverse chronological order.
    How could i retrieve the dates for the 'current' and the 'Immediate previous' records?
    How would i need to CODE the user exit in order to INDEX the sorted work schedule and retrieve the Start and End dates for the Current and Immediate previous records?
    As i haven't worked on ABAP,it would be very helpful if anyone could kindly provide me with a code or logic for this .
    Thanks in advance.
    Edited by: Vikram B on Mar 29, 2008 9:11 AM

    Hi Friends,
    It is giving the application Log errors In source system
    1) no entry in HR table T569R for 105 and 106.
    2) no personnel work schedule for personnel number of 145404,342983 and 366054.
    These are showing in application log r/3 source system side.
    what selection criteria is avilable in rsa3 extactly that is reflect to info package.
    i need to restrict only employee number wise ip or any other selection criteria i need follow.
    Please tell me how to load how avoid the application logs.
    thanks,
    Guna.

  • How to save and retrieve 3D data

    Hi, all:
    I have several 3-D data and each one has a very large and different size. I saved them in 1D using Write to binary file after reshaping the data, and retrieve it after the user key in the size of the data so that my code can reshape the data into a correct size.
    My first question is, is there any way to save the data directly into a 3D format so that the user can retrieve the data without knowing the size? For example, I have the data A in 55(row)x512(column)x500(frame) and the data B in 3(row)x1004(column)x1500(frame). Is there any way to save and retrieve them without the need to know their size in advance?
    My second question is, I will generate several data set like this and save and retrieve them during data collection. I found that it always takes a long time to save the data, and longer time to retrieve the data. Is there any way better than saving in binary to reduce the time?
    I am using LV 8.2. I tried to search the previous posts for the answers but found that some downloaded examples gave me a warning that my current version couldn't support the function.
    I would very appreciate for any suggestion and example code to help me. Thank you in advance.

    By default, LabVIEW will prepend the array size when you write binary data, so all you need to do is wire an empty 3D array of the correct type to the "data type" input when you use "read binary file" and everything will fall into place. Have you tried?
    (Edit: Ahhh, Smercurio... was faster once more. ) 
    Message Edited by altenbach on 09-04-2008 02:32 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    3DBinary.png ‏6 KB

  • How to retrieve the data from the RT card after the host rebooted??

    Thank you for your answer!
    how to design my application to retrieve the data that was collected on RT Series hardware while the host PC was not in communication with the embedded LabVIEW RT application.

    I rember correctly, that may be one of the more challenging varieties to pull this stunt off.
    First, you are going to have to make sure you have enough memory to buffer the data while the host if doing something else.
    If you have enough memory you may want explicitly work up a comm scheem between the host and PC (probaly using VI server) that will let the host know there is data avaiailable and it should get it.
    So, doe sit seem like we may be getting closer?
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Crystal report doesnt retrieve SAP data in infoview

    Hi all,
    I'm using integration toolkit for SAP to read data from a function module in SAP, when I run the report on a local machine, the report works fine and I'm getting data, when I publish the report in infoview, the report works but isnt retrieving any data.
    I'm running BOE XI 3.1 FP 2.7, Crystal Reports 2008 FP 2.7, Integration toolkit for SAP FP 2.7
    Any ideas?
    Regards

    Hi Efstratios, thanks for your reply.
    Is the integration kit installed on your BOBJ server also?
    The integration toolkit is installed in BOE and it works fine with other applications (WEBi).
    Do you use a fixed user name and password to get the data from the SAP back-end?
    Currently, the user and password is entered in the prompt when running the report in infoview, we are usign a SAP user with SAP_ALL profile.
    DO you get an error message or just a blank report?
    Just a report with format and no data
    Thanks again

  • Outlook 2010 Client - "unable to connect to retrieve additional data" for some Distribution lists

    We have a mix of Outlook 2003, 2007 and 2010 clients in our organization.
    Users with an outlook 2010 client are having issues with a number (not all) of our distribution lists.
    Issues: When selecting a distribution list in the new message 'to' fiedl, a 'message tip' appears with the name of the DL and 'contains xx recipients'.
    However, when attempting to expand the DL (selecting the + sign) the following prompt appears "Cannot perfrom the requested operation. The command selected is not valid for this recipient. The operation failed"
    When selecting the DL through the outlook address book the memberlist is empty and has a mail tip "unable to connect to retrieve additional data".
    The DL's were all created in a 2003 environment.
    We are currently setting up a 2010 environment, and all DL's were created prior to any schema updates etc.
    Of note, users experience the issue, but access the list through OWA don't have the issue.

    Please also perform the following steps to troubleshoot the issue.
    1. Temporarily turn off firewall and antivirus program on the problematic machine for a test.
    2. Remove the Outlook profile completely and create a new profile.
    3. Login on the same mailbox by Outlook 2010 on another machine to check the result.
    If the issue persists, please open Event Viewer and check whether any error message exists. If so, please post it here for research.
    Thanks.
    Novak Wu-MSFT

  • After a Lion clean install, how do I retrieve my data from external back-up? Following Apple advice for use of Migration Assistant did not work creating similar issues leading to clean install.

    After a Lion clean install, how do I retrieve my data from external hard drive?
    Following Apple advice I used Migration Assistant which crashed new system twice which is why I had to clean install Lion in the first place.
    Is there a sure way of doing it?
    I have only a few programs that I will have to install myself and that should not be a problem.
    I just want my data, music and photos back where I can use them.

    Time machine backups. I went to migration assistant a few hours ago and limited my selection to "users", no need for applications, settings and other files.  Stuff started moving over at a fast pace but has now seemed to stall.
    I will let it run overnight as there are lots of songs and photos as well as a few movies.
    If that does not work, then I will go into TM and try restore. I have restored some things in the past such a mail files and it has worked well. 
    The Apple fellow at the store told me to go right into TM, he may have had a point. I'll get it eventually.

Maybe you are looking for

  • Which Macbook Pros have turbo boost?

    I am about to sell my 13 inch and upgrade to a refurbished 15 inch, but I want a processor with turbo boost. What time period did turbo boost processors start being available on MBP's?

  • How can i get a new casing (skin) for my iphone?

    how do i get a new skin case thingy? because my white iphone condition isnt the best. want it new again

  • Detail information in multiple areas of a report

    Post Author: Theresa Rose CA Forum: Crystal Reports I need detail information to show up on multiple areas of a report that I am working on.There are different areas on a form that I am working on that require multiple lines of detail information. I

  • Pick Release SRS

    I need to perform Pick Release via SRS or a batch mode. There is a specific requirement to Pick Release 5 days before Scheduled Ship Date of the Sales Order Line. How can i do this function? There is no such parameter while defining Pick Release Rule

  • Is there a SATA and USB 2 CARD for my G4?

    I am looking to expand my old G4 to read SATA HD and USB2 DRIVE. Please recommend one. Heard some problem about deep sleep freeze. Thanks!