get the name of the day of a date (format yyyy/mm/dd)

Hello

In blackberry java application development is possible to get the name of the day of a date (format yyyy/mm/dd).

I have a date as 09/15/2013. I want the output like Sunday

Thank you and best regards.

Thank you reply Erwan fo...

I post my code using... It can be used to get the name of the day for a date string.

//SimpleDateFormat write = new SimpleDateFormat("EEEE-MMM-dd");//It will return Weekday name as full plus monthe name plus date
SimpleDateFormat write = new SimpleDateFormat("EEEE");//It will return Weekday name
Date date = new Date(HttpDateParser.parse("2013/09/12"));
System.out.println(write.format(parsedDate));

Best regards.

Tags: BlackBerry Developers

Similar Questions

  • How to get the day as a numeric value without the date in shape?

    Hello
    to reduce the costs of a sql statement, I need to get the day of a date under the number (to compare to a numerical value) value without formatting. Each formatting causes a complete table of the table scan and the date field. Is there a function for this problem?

    Version of Oracle's 11g.

    Thank you Carsten

    You can use EXTRACT...

    SQL> select extract(day from sysdate) from dual;
    
    EXTRACT(DAYFROMSYSDATE)
    -----------------------
                          7
    
    SQL>
    
  • How to get the 'DAY' based on the territory of current account held a number between

    Hi all

    Looks like I'm at the end of my intelligence here but how to get the 'DAY' based on the territory of current account with a number between 1 and 7? Oracle has functions to extract the day of the week, but I can't find the other way around.
    SQL> select * from v$version;
    
    BANNER
    --------------------------------------------------------------------------------
    Oracle Database 11g Release 11.2.0.3.0 - 64bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    CORE    11.2.0.3.0      Production
    TNS for Linux: Version 11.2.0.3.0 - Production
    NLSRTL Version 11.2.0.3.0 - Production
    
    SQL> alter session set nls_territory=AMERICA;
    
    Session altered.
    
    SQL> select to_char (sysdate, 'D') from dual;
    
    T
    -
    3
    
    SQL> alter session set nls_territory=GERMANY;
    
    Session altered.
    
    SQL> select to_char (sysdate, 'D') from dual;
    
    T
    -
    2
    I need a way to know that the number '3' on the database with NLS_TERRITORY = AMERICA means a 'Tuesday' or the number '2' on a database with NLS_TERRITORY = GERMANY means "Tuesday" as well.

    Hope I am clear enough.

    And wish you all a happy new year :)

    Kind regards
    Smail

    Use the format "IW" to get the date of Monday and the format "DAY" to get the "first day of the week. Then compare dates to see if they are identical.

    ALTER SESSION SET NLS_TERRITORY = 'AMERICA';
    
    SELECT TRUNC(SYSDATE-LEVEL, 'IW') "Monday",
    TRUNC(SYSDATE-LEVEL, 'DAY') "NLS First day of week",
    MOD(TRUNC(SYSDATE-LEVEL, 'IW') - TRUNC(SYSDATE-LEVEL, 'DAY') + 7, 7) "1 if day 1 = SUN, 0 if MON"
    FROM DUAL CONNECT BY LEVEL <= 7;
    
    Monday    NLS First day of week 1 if day 1 = SUN, 0 if MON
    --------- --------------------- --------------------------
    31-DEC-12 30-DEC-12                                      1
    24-DEC-12 30-DEC-12                                      1
    24-DEC-12 23-DEC-12                                      1
    24-DEC-12 23-DEC-12                                      1
    24-DEC-12 23-DEC-12                                      1
    24-DEC-12 23-DEC-12                                      1
    24-DEC-12 23-DEC-12                                      1
    
    alter session set nls_territory = 'FRANCE';
    
    SELECT TRUNC(SYSDATE-LEVEL, 'IW') "Monday",
    TRUNC(SYSDATE-LEVEL, 'DAY') "NLS First day of week",
    MOD(TRUNC(SYSDATE-LEVEL, 'IW') - TRUNC(SYSDATE-LEVEL, 'DAY') + 7, 7) "1 if day 1 = SUN, 0 if MON"
    FROM DUAL CONNECT BY LEVEL <= 7;
    
    Monday   NLS First day of week 1 if day 1 = SUN, 0 if MON
    -------- --------------------- --------------------------
    31/12/12 31/12/12                                       0
    24/12/12 24/12/12                                       0
    24/12/12 24/12/12                                       0
    24/12/12 24/12/12                                       0
    24/12/12 24/12/12                                       0
    24/12/12 24/12/12                                       0
    24/12/12 24/12/12                                       0
    

    Or it could be simpler:

    ALTER SESSION SET NLS_TERRITORY = 'AMERICA';
    
    WITH DATA AS (SELECT LEVEL INPUT_DAY FROM DUAL CONNECT BY LEVEL <= 7)
    SELECT INPUT_DAY,
    TO_CHAR(TRUNC(SYSDATE, 'Day')+INPUT_DAY-1, 'DAY') "Day label"
    from data;
    
    INPUT_DAY Day label
    --------- ------------------------------------
            1 SUNDAY
            2 MONDAY
            3 TUESDAY
            4 WEDNESDAY
            5 THURSDAY
            6 FRIDAY
            7 SATURDAY
    
    alter session set nls_territory = 'FRANCE';
    
    WITH DATA AS (SELECT LEVEL INPUT_DAY FROM DUAL CONNECT BY LEVEL <= 7)
    SELECT INPUT_DAY,
    TO_CHAR(TRUNC(SYSDATE, 'Day')+INPUT_DAY-1, 'DAY') "Day label"
    from data;
    
    INPUT_DAY Day label
    --------- ------------------------------------
            1 MONDAY
            2 TUESDAY
            3 WEDNESDAY
            4 THURSDAY
            5 FRIDAY
            6 SATURDAY
            7 SUNDAY
    
  • How to get the multiple layers of data

    Hello

    I imported two jpg files into a single composition. Please follow this procedure...

    1 created a composition, say his name testCompo

    2 imported a file1.jpg in the file-> Import-> file draft

    3 imported a file2.jpg in the file-> Import-> file draft

    4. drag the two files, file1.jpg and file2.jpg, in the testCompo

    Now, I have two layers (it is file1.jpg and nested are file2.jpg) in my testCompo. How can I get the information in pixels or pixel data of the

    the two images (IE, I mean layers).

    I knew that params [0]-> u.ld is the first data layer in

    () EntryPointFunc
    PF_Cmd cmd,
    PF_InData * in_data,
    PF_OutData * out_data,.
    PF_ParamDef * params [],.
    PF_LayerDef * output,
    void * extra)

    So what about other data layer? Then, finally how can we get the multiple images/layers data in AE?

    Thanks in advance!

    It's the thing.

    You must have a param layer (let's say it's param number 3).

    Use this param to select any layer of the model.

    Now you checkout param 3.

    what you get is a paramDef structure containing the pixels of the layer 3 Advanced param to.

    you will find this information at:

    paramDef-> u.ld.data (or something close to that. I do not have in front of me)

    This way the jpg1 affect can get jpg2 pixels and jpg3. any layer in the comp.

  • How can I get the exact time and date on my FAX LOG

    I have a new HP Officejet 6500 has more on my Dell Inspiron Windows XP computer.  How can I get the exact time and date on my FAX log?

    Hi FrederickFrank7,

    Journal of faxes would just follow the time of your printer. Please set the time and date of your printer.

    I am an employee of HP.
    Please indicate the position that solved your problem as "acceptable Solution".

  • Unable to format the memory card, I get the message "windows could not format.

    Original title: car micro sd problem

    Hello
    my laptop detects the memory card (after a good dose of refreshing it), but whenever I try to open it or scan or format, any area 'my computer' freezes. and, now my phone displays the message "no inserted memory card. I use a dell inspiron 1525 with windows vista sp2 with 3 GB of ram and and 230 GB hard drive.
    to get you in the loop, the songs on my memory card using previously to disappear on their own or used to go corrupt, so I decided to scan it. now, when I insert in my lappy, im facing this new problem. kindly helppppppppp me.
    PS - after several attempts, I had the option to put in shape, but after clicking on the option, I get the message "windows could not format.

    Hello

    You are able to use any other memory card with no problems on the same computer?

    Try to format it on another computer and check. If you are unable to format it on another computer then it is perhaps because of the corrupted memory card. You will need to contact the manufacturer for assistance.

  • get the calendar week start date

    Hi all

    Is there a function or method in oracle 11g to get the calendar week start date? for example. If 1st week begins January 3, 2011, the function should return January 3, 2011.

    Thank you
    Sunita

    Try this

    SQL> select next_day(trunc(sysdate,'YYYY'),'SUN')+1 from dual;
    
    NEXT_DAY(
    ---------
    03-JAN-11
    

    The solution given by Mahesh is a gross... 3 jan was just for example... not to hardcode

  • Dynamic action - Get the difference between two dates + times

    I have problems a little dynamic to work action. I'm trying to get the time between two dates with the time difference.

    Here is what I got (this is apex 4.0):

    Two date pickers + two numbers fields (date/start/end times)

    I created a dynamic action on the page who fires on the point lose focus (above points).

    The real action for the DA is the body of the PL/SQL function:
    declare
      end_date DATE;
      start_date DATE;
    Begin
      start_date := to_char(:P1_START_DATE || ' ' || :P1_START_TIME, 'DD-MON-YYYY HH:MIAM');
      end_date := to_char(:P1_END_DATE || ' ' || :P1_END_TIME, 'DD-MON-YYYY HH:MIAM');
      :P1_HOURS := end_date-start_date;
    End;
    When I change the values on the page, I get the following error:

    AJAX call back Server error ORA-06502: PL/SQL: digital or value error: character number conversion error to set the value.

    I'm guessing that there is a problem with the date formatting, but I can't make it work. Thanks in advance!

    Hi djston,

    because you chose the dynamic action of 'Set value' with the "Body of the PL/SQL function" type you need to return the value. Try the following code

    declare
      end_date DATE;
      start_date DATE;
    Begin
      start_date := to_date(:P1_START_DATE || ' ' || :P1_START_TIME, 'DD-MM-YYYY HH:MIAM');
      end_date := to_date(:P1_END_DATE || ' ' || :P1_END_TIME, 'DD-MM-YYYY HH:MIAM');
      RETURN (end_date-start_date)*24;
    End;
    

    and P1_REQUESTED_HOURS like 'item affected. "

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

    Published by: Patrick Wolf on January 17, 2011 10:54

  • Where that we manage for the display and entry date formats

    the specification of the user that is displayed as DD-MON-YYYY dates. Is there a config or properties file that contains the date format for display? Is there a drop down calendar which can be positioned next to an input field to date for a question on a screen?
    Thank you
    Allan

    Hi Allan,

    Just had a look at this takeover bid 10.1 on my machine.

    I noticed that for an attribute date as on a screen, when you use Input type = Year, Month and Day edits (in the file screens), it seems to display the three drop-down lists in the same order (day, month, year), regardless of what's been defined in the configuration line "input-date-formats" in messages. file .properties (locale).

    However, I was not sure of your email if the DD-MON-YYYY format was necessary for the entriesto date, or just for the display of date output. If the latter, then using the following in your messages. (place) .properties file...

    output-date-format = yyyy-MMM-dd
    

    ... will translate dates displayed like this: 1980-Jan-27

    To force the OWD to accept only dates of entry of user in the format '1980-Jan-27' then you can edit the line input-date-formats of configuration:

    input-date-formats = yyyy-MMM-dd
    

    ... However, it is rare to restrict the dates of entry into a single format. As you will see in the messages. (locale) .properties file entry-date-formats is set to a combination of common entry to the regional settings date formats, in addition to the ISO international date format (YYYY-MM-DD, e.g. 1980-01-27).

    See you soon,.
    Jasmine

  • Get the day of the week (dow) of old date

    Hello

    Do you know how I can get any stored date (Mon, Mar) dow say in param:

    bizdate date: May 15, 2010 = ';

    day 3 VARCHAR2 (3);

    I use this first select statement of the double, but may not know how to replace the current date with the other,

    #1:
    Select to_char (sysdate, 'dy') in day 3 of double;

    #2:
    Select to_char('15-May-2010','dy') in the day 3 of double;
    How can I say this may 15, 2010 pl "to the date format?


    TX
    T

    Maybe this?

    SQL> select to_char(sysdate,'day') dow from dual;
    
    DOW
    ---------
    wednesday
    
    SQL> select to_char(to_date('15-May-2010','dd-mon-yyyy'),'day') dow
      2  from dual;
    
    DOW
    ---------
    saturday
    
    SQL> 
    
  • I can't download or get the day or devices drivers to run my computer rite, you can solve this problem for me

    I can't download or get the drivers or devices I have to get my computer to run the rite can you solve these problems over the computer, I tried everything its fact of the month

    What drivers you are trying to update?

    What devices you are trying to run it on the computer?

    What have you done so far?

    Have you been to the websites of the manufacturers for drivers updated to your computer?

  • get the day of the week: Monday, Tuesday...

    Hello
    Is there a system function to get the LUN, sysdate Mar in Oracle:
    Or do I have to go with the series of the Ifs after:
    Select double to_char(sysdate,'D');


    TX
    T
    SQL> select to_char(sysdate,'FMDay') from dual
      2  /
    
    TO_CHAR(S
    ---------
    Wednesday
    
    SQL> 
    

    SY.

  • Getting the activity of contact data?

    Hi all

    In trying to get the ProcessedActivity of database entities, I always get 0 record.

    Should be a config change to record activities?

    Moreover, in trying to get the RESTful API activities, I send requests to each contact id and each type of activity of the 8 types (emailOpen emailSend, emailClickThrough, emailSubscribe, emailUnsubscribe, formSubmit, webVisit, campaignMembership).

    But each application would expire.

    When obtaining accounts and Contacts, it works well, and records of result would be returned in a few seconds.

    So, what should I do especially for activities?

    Any suggestions?

    Thank you

    Biao

    Extraction activities in bulk via SOAP by the ProcessedActivity only works if you have the internal queue previously activated for you, and you have the activity according to the internal events that log information that him. It will store data up to 45 days. So 0 results could mean it is not enabled, your internal events are disabled (or external calls in them have been deleted) or your date range is beyond the data you have, or simply the filter on your query returns no data. You can read more here:

    The queue of activity processed (AQP)

    And here:

    Eloqua API how: retrieve data of activity through the API

    To make queries through the REST, if you get HTTP500, try again with a shorter period of time and a small page to test. If you're pulling for one year (maximum) and contacts a large number of activities, the db simply may not have able to extract the data in time. To clarify on the levels of support for REST 1.0 - product compatible will address all the problems that you encounter with him and log defects or feature requests as needed. From there on, dev may specify what level of action, we can provide on this particular workflow or an end point. REST 2.0 is not supported because it is not contractually stable and may change between versions. If the behavior/feature you need is available at REST 2.0 and 1.0 not, then certainly, you can consider using it, but it is not recommended because of this reason.

    For activity in general, exports in bulk 2.0 export activity are available. They have the advantage to be more effective than the REST, which is 1 call per contact by type of activity, and support the date more 1 year ranges. During the SOAP/QIP method, there the advantage of not requiring installation and changes to your integration area, as well as no drop of data after 45 days.

  • Get the scsi for a data store information if the data store is known

    Hello

    I'm looking for a way to get the information of scsci for a data store if the name of the data store is known. In perl/powershell, this is not a big problem, but how to do this using the Orchestrator. It seems that some information is not available/accessible in vCO, as information volume.extent (object VcHostFileSystemVolume).

    For an example on how to do who, in powershell, see

    http://vwiki.co.UK/Datastore_to_LUN_Mapping_%28PowerCLI%29

    No idea on how to do the same with the Orchestrator.

    Concerning

    Thomas

    Hello

    Onyx would not help in this case. After thinking a bit, I found the solution. I looks like:

    for each {(var Mon in wfHostObject.configManager.storageSystem.storageDeviceInfo.multipathInfo.lun)

    System.Debug ("number of paths:" + lun.path.length);

    for each {(var path in lun.path)

    If (path.state == 'active') {}

    //

    Download the mountinfo

    //

    System.Debug ("mountinfo length:" + wfHostObject.configManager.storageSystem.fileSystemVolumeInfo.mountInfo.length);

    for each {(Mount var in wfHostObject.configManager.storageSystem.fileSystemVolumeInfo.mountInfo)

    If (mount.volume.hasOwnProperty ("extent")) {}

    for each {(measure of var in mount.volume.extent)

    var tmp = extent.diskName.split(/\./);

    var regExp = new RegExp(tmp[1],'gi');

    If (lun.id.match (regExp)) {}

    System.Debug ("mount.type:" + mount.volume.type);

    System.Debug ("mount.name:" + mount.volume.name);

    System.Debug ("extent.diskName:" + extent.diskName);

    }

    }

    }

    }

    }

    }

    }

  • How update just the day of a date value?

    Example:

    Table: FC_GQ_SOURCE_ANALYSIS

    Sample_type = C

    Effective_date = null

    Sample_date = 20/13/07/14 09:00

    Should that happen, it's for any analysis of the sample which has a 'C' sample_type we need for the entry into force the first day of the month for some months of the date of the sample is and keep the time that it is...

    so in the example data, the entry into force should be 2013/07/01 09:00.

    How to update only the part of the day of this string of date?

    Hello

    You don't need to convert it to a string and back to do.  TRUNC allows to get the right day and date arithmetic to get the right time, like this:

    UPDATE fc_gq_source_analysis

    SET effective_date = TRUNC (sample_date, 'MONTH')

    + (sample_date - TRUNC (sample_date))

    WHERE sample_type = 'C '.

    ;

    TRUNC (sample_date, 'MONTH') is midnight the 1st of the month you want.

    sample_date - TRUNC (sample_date) is the time you want, expressed in number of days (for example, 9/24 a day).

Maybe you are looking for