How to set current time ?

Hi,
I am in eastern time zone and my Apex sysdate shows EST. However the date picker shows four hours ahead (GMT) . The reason I found is the current_time stamp set to 00:00 instead of -04:00. (DBTIMEZONE) . Our DBA does not know much about APEX . When I made qurries about time zone and time stamp at SQL Commonds, the results are as follow:
select SESSIONTIMEZONE from dual;
SESSIONTIMEZONE
+00:00
select current_timestamp,systimestamp, localtimestamp from dual
CURRENT_TIMESTAMP SYSTIMESTAMP LOCALTIMESTAMP
10-AUG-07 01.07.40.740216 PM +00:00 10-AUG-07 09.07.40.740199 AM -04:00 10-AUG-07 01.07.40.740216 PM
when I tried the following statement,
alter session set time_zone= '-4:00';
I got
Statement processed.
but no thing has been changed.
The question is how to set the time so that in the date picker with time It will show me the correct default time. Right now it is showing four hours ahead.
Thanks for the help.

Hi Adnan,
Convert is from date to string :
String bldate=item.getBilling_Date();
                                                  String byy=bldate.substring(0,4);
                                                  String bmm=bldate.substring(4,6);
                                                  String bdd=bldate.substring(6,8);
                                                  String bdate=byy+"-"+bmm+"-"+bdd;                         
                                                  java.sql.Date bildate=java.sql.Date.valueOf(bdate);
elem1.setBilling_Date(bildate);
Regards
Khushboo

Similar Messages

  • How to set up time capsule with BT Infinity

    how to set up time capsule with BT Infinity

    The easiest and sure way is to use bridge on the TC as the method of connection. The TC then becomes a device in your network and gets its IP from the main router that I presume BT supply.
    Method is,
    1. Plug the TC WAN port into the BT supplied modem by ethernet.
    2. Plug the computer you are using for the setup into the TC by ethernet.
    3. Run the airport utility .. go to internet tab on the top menu..
    In the bottom option, Connection Sharing choose off (bridged mode)
    4. Go to the wireless page and setup wireless connection as you like it.. using whichever band you want. And make sure security is set to the highest setting, wpa2 personal. Put in a decent wireless passkey.
    5. Press the update and fix whatever else the TC will show as needing fixing.. usually security stuff.
    6. You can then disconnect the ethernet and connect by wireless if you want. Any port on the TC will now be a LAN port, including WAN.
    This is assuming BT supply a wireless router with built in vdsl/other type of modem. If so you normally will not be able to bridge the modem, unless BT are using pppoe authentication which they haven't in the past.
    If you really need to use the TC as a router then you will need to work out an alternative method. You can double NAT by placing the TC in the DMZ of the BT router if that is an option. It is not without issues in general.

  • How to set current year,month as default value in combo box

    hi,  im newbie of xcelsius user
    i realize  that hv a issue that display combo box base on year & month
    let said
    <b><u>step 1</u></b>
    I create excel data like this
    <b><u>year___ </u>  </b>    |     <u><b>month_   </b></u> |     <u><b>Product</b></u> |     <u><b>revenue</b></u>
    02-04-09 |     02-04-09 |       a |     $4,154
    03-04-09 |     03-04-09 |       b |     $6,813
    04-05-09 |     04-05-09 |       a |     $9,875
    05-06-09 |     05-06-09 |       b |     $6,813
    06-04-10 |     06-04-10 |       a |     $6,813
    07-04-10 |     07-04-10 |       b |     $9,875
    08-06-10 |     08-06-10 |       a |     $9,875
    22-06-10 |     22-06-10 |       b |     $6,813
    <u><b>Step2</b></u>
    Then i go format cell to format/custom date to year & month
    Eg1: Year u2013>  02-04-09  convert to u2018YYYYu2019 (2009)
    Eg2: Month u2013>  02-04-09  convert to u2018mmmmu2019 (April)
    So output like this
    <u><b>year</b></u> |     <u><b>month</b></u> |     <u><b>Product</b></u> |     <u><b>revenue </b></u>
    2009 |     April |     a |     $4,154
    2009 |     April |     b |     $6,813
    2009 |     May |     a |     $9,875
    2009 |     June |     b |     $6,813
    2010 |     April |     a |     $6,813
    2010 |     April |     b |      $9,875
    2010 |     June |     a |     $9,875
    2010 |     June |     b |     $6,813
    But the problem is when i insert to combo box,use u201Cfilter Row u201D, i excpectation will display only 2009,2010
    But Actual display the Year  in combo box is duplicated :'(
    so any solution ? and then only how to set current year & month as default value  :'(
    thanks,
    regards
    s1
    Edited by: Leong Pui Kee on Feb 25, 2011 5:25 AM
    Edited by: Leong Pui Kee on Feb 25, 2011 5:36 AM

    hi,
    your created  data
    step 1
    I create excel data like this
    year___ | month_ | Product | revenue
    02-04-09 | 02-04-09 | a | $4,154
    03-04-09 | 03-04-09 | b | $6,813
    04-05-09 | 04-05-09 | a | $9,875
    05-06-09 | 05-06-09 | b | $6,813
    06-04-10 | 06-04-10 | a | $6,813
    07-04-10 | 07-04-10 | b | $9,875
    08-06-10 | 08-06-10 | a | $9,875
    22-06-10 | 22-06-10 | b | $6,813
    In this, year and month both are same data, make the diffent data like year  2009, 2010  And month Jan, Feb, March, ...Etc 
    and also one more check you formulas on month and year, select correct source data, destination data  for compoonent..
    OR
    from above, to create a date column and convert  date-->year, date--> month and Explore it.
    All the best,
    Praveen

  • How to set delay time in tooltiptext

    Hai,
    I'm developing desktop application by using SWINGs in that app there in some text fields for that i have written mouseEntered method.
    in that method i used tooltiptext. It working properly. I need it to display message upto mouseout from text field.
    so any one could please help me how to set delay time for the tooltiptext.

    Read the API for avax.swing.ToolTipManager. Also, you don't need to use a MouseListener, just call setToolTipText or override getToolTipText.
    db

  • How to get current time and date??

    How to get current time and date from my PC time and date to the java application??
    i use java.util.* package but got error, that is:
    - java.util.* and java.sql.* class are match
    - abstract class cannot be instantiated
    so what can i do, pls guide...thanks...

    There is a method in the System class that will return the current system time. You could also instantiate a Date, Time, Timestamp, or Calendar object, all of which get created with the system time by default.
    Don't import *. Import the specific classes you need.
    Next time, post the actual text of the exceptions/compile errors. If you make people guess, most just won't bother.

  • How to set default time for appointment

    When I had snow leopard, the default time for length of an appointment was one hour.  I upgraded to Lion and now the default time is many hours.  Can't seem to find the area to change the default.  Keith

    Hello User,
    Check this:-
    Sasi Nagireddy: How to Set Default Time Zone for all Users in OBIEE?
    Thanks,
    Sasi Nagireddy..

  • How to set expiry time for cached Subjects of authenticated proxy service.

    How to set expiry time for cached Subjects of authenticated proxy service in message level authentication.
    Because of this, password change does not effect immediatly in proxy invocation.
    I'm using Weblogic 10.3 and OSB3.0

    Hi,
    You can activate Time-Dependent Publishing Service on your XML form and once the Lifetime of Documents is over then the document is not visible to users.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c1/c87d3cf8ff3934e10000000a11405a/frameset.htm
    It is only invisible but not deleted!
    So to delete all expired XML Forms you should run Scheduler Tasks for Time-Dependent Publishing:
    <b>TimeBasePublishingUnpublish</b>
    http://help.sap.com/saphelp_nw2004s/helpdata/en/3a/bc37b5789dee4eaa8005bff84f14cf/frameset.htm
    You can also create your own Scheduler Task which deletes/archieves all expired XML Forms.
    Greetings,
    Praveen Gudapati
    [Points are welcome for helpful answers]

  • How to set snooze time

    Hi ,
    Please let us know how to set snooze time to 5 mintues in Iphone5. At present it is having snooze interval of 10 minutues.
    We are able to see Snooze off / on but i need to reduce snooze time from 10 minutes to 5 minutes.
    Appreciate your valuable inputs.
    Thanks

    It says in the User guide about the snooze:
    "Don't want to get up just yet? When an alarm sounds, you can snooze the alarm. This pauses the alarm for a predefined length of time.
    When the alarm sounds, select snooze."
    My question is how can I do the predefining? It is now 10 minutes and I would like to make it shorter.
    Another question was, if I can define the alarm volume separately from the other sounds of the phone? How can I set the phone mute for sleeping time, and still use the alarm to wake upp?

  • How to set real time waveform chart

    I would like to record voltage signal from built-in microphone. My block diagram is attached.
    I would to like record 1second data every 10min and then take an average of that 1s data so that I have 1 data point about every 10min. The time of the origin of the chart must be kept at start date and time all the time and the program need to run until I stop it. 
    But I cannot set the date and time to be real time. How can I make it?
    Thank you very much.
    Attachments:
    1.vi ‏41 KB

    Hello
    answers are in blue
    phx wrote:
    Freelance_LV, Thank you very much for your editing, I am testing the program. I have some questions.
    1. Why can't I just using continuously running to run my program to make to run continuously? it is a good practice to use a while loop and run the code, than use the run continuously button. my understanding is that the run continuously button will cause the code to run at the highest possible processor speed and will use up the entire load on the processor. by using a while loop and placing a small delay, we can ensure that the cpu is not loaded by our program. But, i hope our seniors could provide the correct explanation to it.
    2. From your diagram, what I realise is that in 3600s, the signal of time sends data to "elapsed time" every 0.1s until the elapesd time is the same as target time so the the "True/False" Loop" can run. My question is, once the the "True/False loop" start runnig, how long does it run? 1second? Or is my understanding about the flow wrong? check the attached code. i made some additions, to answers your question.
    3. The minimum sample rate of the "acquire sound" is set to 11025Hz which is also the sample length of the "Mean". Does it mean that the mean it takes is the mean of the amplitude of latest 11025 samples? would suggest you use Mean vi than the Mean Pt to Pt vi. logically, the mean vi should read the input array of data, calculate the mean of the values. there is no 'latest' here. the mean vi gives the mean value of the array at its input. the acquire sound vi will read the data from the microphone at the sample rate mentioned. you said the min sample rate if 11025 Hz. but your code shows 8000 Hz as input!
    4. Why isn't the x-axis the current time if I just put the diagram inside the True/False Loop out to a new VI? you will need to set the start time of the X-axis using the property node X-axis range minimum value. Else, the chart/graph will take the standard start time as 1/1/1981 and 0.00 time + or _ the GMT zone.
    Thank you very much!!
    Attachments:
    1_edit.vi ‏68 KB

  • UC320: how to set (correct) time and date, upload own AA messages, get caller ID, telnet?

    Hello there,
    Just trying out the UC320 I got borrowed from Cisco AT for testing with firmware 2.1.2 (1) localized for Austria.
    The device is connected to the cable modem of my ISP (Kabelsignal) utilizing two FXO ports, getting an IP address from my DHCP being connected to a WS-C2960G-24TD (LAN 1@UC320 connected to Gi0/18@C2960G port macro Cisco Switch enabled).
    Now I would like to try/see the following features:
    - a correct time and date: huh? hwo/where???
    No option to set this right??? No NTP option??? Am I just blind or too stupid to find that option/s?
    - upload own messages for the AA: ok, there are german messages but someone might have a little bit personalized ones - maybe telling callers the company name before asking them to dial the extension if they know it. Making custom messages is not the problem - but how to upload and in which sound/data format?
    - caller ID: my ISP told me that he transfers the caller ID correctly to analoge end devices if caller ID is available and not suppressed. All I can see when a call comes in is which FXO Port is being used by that call. So callback entries on the SPA phone is senseless. Any advise?
    - CLI: You can telnet the device - but which credentials to use to successfully logon? The pre-assigned credentials form Cisco AT are not accepted for logon.
    BTW @Cisco guys: I am also voting for support for the older SPAs (e.g. 942)

    Hi Claus,
    Thanks for giving the UC320W a spin and glad you found the support community!  Let met see if I can help answer your questions....
    Time/Date & NTP -- The UC320W is preconfigured with Cisco's Small Business NTP server.  The preferred method for correct time you will need the UC320W WAN to be connected with Internet access.   If there is no WAN connectivity there is a feature in the 2.1.x firmware where you can set the time on a SPA phone GUI and it will then update the system time.  Alternatively, if you have a LAN side NTP server that is on the same subnet as your Data VLAN subnet, you can use the NTP.pmf file found here:  https://supportforums.cisco.com/docs/DOC-16301
    Upload custom Music on Hold and Auto Attendant prompt files.  We are currently in beta of a new Cloud service.  To participate in the Beta, please send an e-mail to [email protected] requesting MoH/AA Custom files Cloud Beta participation.
    Caller ID on FXO:  Make sure that you have run the impedance matching tool on each of your FXO ports.  For additional information on running the Impedance Matching tool and Caller ID troubleshooting, please see the UC320W Troubleshooting Guide.
    CLI access -- This is for Cisco Support personnel only for low level debugging.  This is not a IOS based device and there is no command line access for provisioning.
    Cheers,
    Chris

  • How to set the time on a WRT160N

    On the status page of the admin console, the current time is listed as 'Not Available'. I've looked through the web admin pages but cannot find the place to set the current time.
    How do I set the time on a WRT160N?

    Under the setup tab...You can select the Time Zone...Select the time zone for your location. If your location experiences daylight savings, leave the checkmark in the box next to "Automatically adjust clock for daylight saving changes" and click on save settings.

  • How to set up time capsule with router

    I have a router N 300 and would like to buy time capsule but I did not find any information how to set up bouth devises. Thanks

    You can always bridge the Time Capsule.. it is easy. Once bridged the time capsule will no longer route. All routing is then handled by the original router.. N300 (which could be belkin or netgear and maybe other people call then N300). It will still work as a wireless access point.. unless you turn it off, a switch with WAN now allocated to LAN, and a network drive.
    Just look up bridge.
    But there are other ways to do things. You could replace the N300, unless it is a modem.. in which case you can bridge that and use pppoe client on the TC (if you ISP does pppoe).

  • How to set system time from Terminal while booted from 10.6.3 server install disk?

    I'm installing from a 10.6.3 server install disc onto a Mac Mini.  However, the battery on this Mac Mini is pretty much dead, forcing the system time back to 1/1/2001.  Through some research, this has created a problem in that I cannot move beyond the Welcome screen during setup of OS X server.  It looks like the binary has issues with the system time being older. 
    But I'm stuck in that I don't know how to adjust the system time from the Terminal Utility on the boot CD.  Can anyone help? 

    Hey, i just run in to something similar, tonight while trying to fix a computer.
    The user set the time and date on his computer to 1998 and computer locked everything including time and date in system preferences, and his user account basicly making him from administrator to guest. he could not almost any program properly that required administrator privilages.
    to fix this we used this comand in terminal " sudo date 201703162014 "    todays time and date
    20:17 03/16 2014
    we tryed everything and this fixed in 2 seconds
    ps: when you type sudo in terminal it whil give you a warning the improper use of this command is bad.... click continue.otherwhise you will not be able to execute the command.
    thanks again for this post and have a great day

  • How to get current time

    Hi,
    I would like to know how to get the current time (07H25 for instance).
    Does someone know how to do it ?
    Thanks in advance, Fred.

    java.util.Date = new java.util.Date();
    The above code produces an object which contains a timestamp (date and time) for the instance in which it was created.
    To display it in any format you wish you would use the java.text.SimpleDateFormat class.

  • How to set a time zone in Agentry.ini

    Hi All,
    I am working on Syclo - MRS integration. We assign a service order in MRS which is in (UTC+03:00) Kuwait, Riyadh .
    When the Syclo client downloads the service order it is in a different time zone and it displays the time according to their time zone.
    Which creates a mismatch in the assignments.
    I have modified the time zone in Agentry.ini to pick the time (UTC+03:00) Kuwait, Riyadh. but this is not working.
    Can you please check the Agentry.ini or suggest how to set this.
    [Configuration]
    developmentServer=False
    [TimeZoneAlias]
    ABST=(UTC+03:00) Kuwait, Riyadh   
    [HTTPXML-2]
    authenticationCertificateStore=MY
    authenticationCertificateStorePassword=
    authenticationCertificateStorePasswordEncoded=false
    autoDequote=true
    baseURL=http://localhost:8282
    basicAuthenticationPassword=
    basicAuthenticationPasswordEncoded=false
    basicAuthenticationUserID=
    constantsFile=httpxml_sd.ini
    enableAuthentication=false
    enablePreviousUserAuthentication=false
    httpConnectTimeout=60
    httpReceiveTimeout=300
    httpResolveTimeout=60
    httpSendTimeout=300
    listenOn=8282
    name=HTTP-XML Back End
    timeZoneName=(UTC+03:00) Kuwait, Riyadh
    timeout=300
    useSSL=false
    xmlAllowXSLTScript=true
    xmlNamespaces=
    xmlResolveExternals=true
    xmlValidateOnParse=true
    [Java-1]
    classPath=./ini4j.jar;./sapjco3.jar;./Java/Agentry-v5.jar;./Java;./Java/SAPCRMSM-4.1.0.0.jar;./Java/SAPCRMSM_CSS.jar
    constantsFile=
    deleteSource=True
    enableAuthentication=True
    enablePreviousUserAuthentication=True
    initialHeapSize=256
    maxHeapSize=512
    name=Java Back End
    timeZoneName=(UTC+03:00) Kuwait, Riyadh
    nonStandardJavaOptions=
    outputDirectory=.
    performCompile=False
    printBusinessLogicStackTrace=False
    printStackTrace=False
    reduceOSSignalUse=True
    scriptsPath=
    serverClass=com/syclo/sap/crm/Server
    sourceDirectory=.
    [System Connections]
    1=ag3javabe.dll
    2=ag3httpxmlbe.dll
    Thanks
    Neha

    Hi Neha,
    The [TimeZoneAlias] section should have all the mobile device time zone in it. The spelling has to be exactly what is seen on the mobile device. The Mobile Device timezone transmits to the Agentry Server , it maps based on what the server understands, then transmit back to the Backend.
    Eg:
    [TimeZoneAlias]
    Australian Eastern Standard Time=(UTC+10:00) Canberra, Melbourne, Sydney
    India Standard Time = (GMT+05:30) Chennai, Kolkata, Mumbai, New Delhi"
    Note: Agentry server while adjusting the timezone gets the list of timezones from Windows registry. It was found that some of the timezone settings may not be recognized by the Windows OS in the server. Please verify the same.
    Modify your Agentry.ini to include the exact spelling of your mobile device time zone alias plus the corresponding equivalent as understood by the Agentry Server. I am also attaching the official KBA note tied to Time Zone Alias.
    http://wiki.scn.sap.com/wiki/display/SAPMOB/Set+Up+Time+Zone+Alias+in+Agentry.ini+Configuration+File
    https://support.wdf.sap.corp/sap/support/notes/1813025
    Additional discussion (Thread): Syclo - Client Time Zone error message
    Thanks
    Resmi

Maybe you are looking for

  • How to call a java script program in a vi?

    Hi, I have to call a script in java script with arguments. This script contains 4 functions, and need an array to works. This array is produced by my vi. It returns a float. How can I call this script with parameters in my vi? Thanks. BD. ~ La progra

  • HT1947 Remote app in iOS7 won't display in landscape mode

    Title says it all - since I updated to iOS7 (which I really like), the Remote app stays in portrait mode no matter how I turn the iPad.  Is it me or is this something other folks have run into?

  • How to  make adding attachments in the oaf page mandatory  to the user.

    Dear Friends I did a attachment section with item style as attachment table,entity map,primary  key concept in my details page But  I want to   make this section (adding attachments in the oaf page)  mandatory  to the user. Without adding the attchme

  • Wireless Advice

    I love my mac since the day I got it. I've tried several times to get different types of internet but every where I went locally wanted me to get some bundled deal where I had to have a phone and every other contraption invented by man since the tele

  • Case study for Purchasing

    Hi all! My Client usually imports goods from abroad to buy. But sometime, they sell directly to there customer when they have goods from abroad, it 's mean they don't receipt to warehouse to stock. How can i sold this case? Please give me some advice