Get DateField selected date?

I have my DateField has been fixed as follows:

SimpleDateFormat dmy = new SimpleDateFormat("yyyy MM dd");
    DateField depart = new DateField(str_depart, System.currentTimeMillis(), dmy);

It is shown:

2011 05 04

I want to get the selected date of this area and I use getDate(); method that returns type of Long (1304485459386).

How can I do to convert it to a string and 2011-05-04 show?

Thank you

Kind regards.

Thank you very much!!  girishthakr

Tags: BlackBerry Developers

Similar Questions

  • Change the selectable Dates in DateField

    Im trying to create a form of event where the datefield will only accept a date of a specific amount of dates to be fired.

    For example, something like this: If the date (today) is greater than the Monday of the 4th week of the month, (so for this month of February, it would be > 20th) then this month (would be nice if it also eliminated previous days that have already passed in the month) and next month is a available for select dates. Else (if less than the 4th week of the month, < 20 February) only this month (february) is a of dates that are available to be picked on.

    I was wondering how you can do this with a < cfinput type = "datefield > tag." I was able to come up with something, but don't know how to get out of here.

    Of CFSET

    < cfset subsist = Now() >

    < cfset NextMonth = DateAdd (', 1, subsist) / >

    < cfset nextMonthNum = daysInMonth(#NextMonth#) / >

    < cfset weekNum = (#weekOfMonth (now ()) #) / >

    < cfset daysNum = daysInMonth (now ()) / >

    < cfset dateToday = Now() >

    DateField

    < cfinput

    Type = "datefield".

    label = "date".

    mask = "d/mm/yy".

    name = 'activitydate '.

    value = "#dateAdd (would be ', now ()) + 1 ' # '"

    required = "yes".

    message = "Please select a valid Date for the event" / >

    That is, it checks for the amount of days and traverses them by giving the date range available at the beginning of the month.

    < cfscript >

    function weekOfMonth (thisDate) {}

    var thisDay = day (thisDate);

    var thisWeek = 0;

    If (thisDay LTE 7)

    thisWeek = 1;

    ElseIf (thisDay GT 7 AND thisDay LTE 14)

    thisWeek = 2;

    ElseIf (thisDay GT 14 AND thisDay LTE 21)

    thisWeek = 3;

    on the other

    thisWeek = 4;

    ThisWeek return;

    }

    < / cfscript >

    < cfif #DatePart('w', TheDate) # GTE 4 AND #weekNum # GTE 2 >

    True < br / >

    < cfloop index = 'x' from = "1" to = "#daysNum #" >

    < cfoutput >

    #DateFormat (now (), "mm") #/ #x #/ #DateFormat (now (), 'yy') # < br / >

    < / cfoutput >

    < / cfloop >

    < cfloop index = 'y' from = "1" to = "#nextMonthNum #" >

    < cfoutput >

    #DateFormat (NextMonth, "mm") #/ #y #/ #DateFormat (NextMonth, "yy") # < br / >

    < / cfoutput >

    < / cfloop >

    < cfelse >

    False < br / >

    < cfloop index = 'z' from = "1" to = "#daysNum #" >

    < cfoutput > (now (), "mm") #DateFormat #/ #z #/ #DateFormat (now (), 'yy') # < br / > < / cfoutput >

    < / cfloop >

    < / cfif >

    Any help is greatly appreciated!

    BobbyWales21 wrote:

    Im trying to create a form of event where the datefield will only accept a date of a specific amount of dates to be fired.

    For example, something like this: If the date (today) is greater than the Monday of the 4th week of the month, (so for this month of February, it would be > 20th) then this month (would be nice if it also eliminated previous days that have already passed in the month) and next month is a available for select dates. Else (if less than the 4th week of the month,<20 for="" february)="" only="" this="" month(february)="" is="" has="" available="" dates="" to="" be="" picked="">

    I found this a difficult to express in the code requirement. I chose to do the simple way with cfselect. With cfselect, it is possible for the user to choose a date from a list including 2 consecutive months.

  • Steps of the DCI Get Enterprise Server Data

    After reading the online help regarding

    CIM get data of Enterprise Server and

    Define the procedure of data of Enterprise Server, I always

    do not understand how these two steps

    and how to use them. Can someone help

    explain what is the Enterprise Server domain

    and how to use these 2 steps? A few examples will be

    also be useful. Thank you!

    Hello

    Let me explain with an example.

    Assume that the call center is for the banking sector with the flow IVR as shown below

    ---> Start

    ---> Play invites (welcome to XYZ Bank)

    ---> Menu (press 1 for banks and 2 for credit card)

    ---> Output1

    ---> Get string of digits (enter the account number)

    ---> Other steps

    ---> Output2

    ---> Get string of digits (enter the number of credit)

    ---> Other steps

    ....

    IVR collects the account number or the caller's credit card number and provides information associated with the appellant. If the caller needs more information, they connect to the available agent. In order to provide detailed information to the appellant, the agent requires a/c or CC number. Since this information is already collected by the IVR, the same can be sent to the Agent and the data can be filled in the screen of enterprise data.

    To move these data values to the company data screen, use "Set Enterprise Data" step in the script. Correlatively, the configuration of business data must be done in the office administrator.

    Flow of use "Set Enterprise Data" is given below

    ---> Select resource (Set Connect property as 'No')

    ---> Selected

    ---> Set Enterprise Data

    ---> Connect

    ---> Queue

    The guide of the desktop administrator to configure business data fields

    http://www.cisco.com/univercd/cc/td/doc/product/voice/sw_ap_to/apps_3_5/english/admn_app/cadad455.pdf - Pg.No: 2-3

    See also Tech Tip for ' how to set up a company data screen Pop?

    http://www.Cisco.com/en/us/partner/products/SW/custcosw/ps1846/products_qanda_item09186a00801df049.shtml

    Get the data of the company:

    Step to get Enterprise Server data allows to retrieve a field Enterprise Server and store it in a script variable.

    When a call is routed to an agent of the CIM with customized business data, the same will be skipped on the company information window. Agents can change the value of these fields in custom business data and transfer to the script of the aef. The script can retrieve these values using 'Get Enterprise Data"step.

    It will be useful.

    Concerning

    Yogi

  • How to get the last date of 3 days for the current month?

    Hello. Guy

    How to get the last date of 3 days for the current month?

    MY OUTPUT WOULD LOOK LIKE THIS

    JANUARY 29, 2016

    JANUARY 30, 2016

    JANUARY 31, 2016


    GUYS HELP ME / / /...

    SQL > select last_day (sysdate) - level + 1 double connect by level<= 3="" order="" by="">

    LAST_DAY)

    ---------

    29 JANUARY 16

    30 JANUARY 16

    31 JANUARY 16

  • How to add two lines when the second row is not visible, but also gets the first data line too?

    Mr President

    Jdev worm is 12.2.1

    How to add two lines when the second row is not visible, but also gets the first data line too?

    I want to add two lines like below picture, but want the second to remain invisible.

    tworows.png

    I asked this question but my way of asking was wrong, that's why for me once again.

    Concerning

    Try to follow these steps:

    1. in the database table to add the new column "JOIN_COLUMN" and add the new sequence "JOIN_SEQ".

    2. Add this new column in the entity object. (You can add this in entity object by right clicking on the entity object and then select "Synchronize with database" then the new column and press on sync)

    3. in your bookmark create button to create only one line NOT 2 rows.

    4 - Open the object entity--> java--> java class--> on the entity object class generate and Tick tick on the accessors and methods of data manipulation

    5 - Open the generated class to EntityImpl and go to the doDML method and write this code

      protected void doDML(int operation, TransactionEvent e)
      {
        if(operation == DML_INSERT)
        {
          SequenceImpl seq = new SequenceImpl("JOIN_SEQ", getDBTransaction());
          oracle.jbo.domain.Number seqValue = seq.getSequenceNumber();
          setJoinColumn(seqValue);
          insertSecondRowInDatabase(getAttribute1(), getAttribute2(), getAttribute3(), getJoinColumn());
        }
    
        if(operation == DML_UPDATE)
        {
          updateSecondRowInDatabase(getAttribute1(), getAttribute2(), getAttribute3(), getJoinColumn());
        }
    
        super.doDML(operation, e);
      }
    
      private void insertSecondRowInDatabase(Object value1, Object value2, Object value3, Object joinColumn)
      {
        PreparedStatement stat = null;
        try
        {
          String sql = "Insert into table_name (COLUMN_1,COLUMN_2,COLUMN_3,JOIN_COLUMN, HIDDEN_COLUMN) values ('" + value1 + "','" + value2 + "','" + value3 + "','" + joinColumn + "', 1)";
          stat = getDBTransaction().createPreparedStatement(sql, 1);
          stat.executeUpdate();
        }
        catch (Exception e)
        {
          e.printStackTrace();
        }
        finally
        {
          try
          {
            stat.close();
          }
          catch (Exception e)
          {
            e.printStackTrace();
          }
        }
      }
    
      private void updateSecondRowInDatabase(Object value1, Object value2, Object value3, Object joinColumn)
      {
        PreparedStatement stat = null;
        try
        {
          String sql = "update table_name set column_1='" + value1 + "', column_2='" + value2 + "', column_3='" + value3 + "' where JOIN_COLUMN='" + joinColumn + "'";
          stat = getDBTransaction().createPreparedStatement(sql, 1);
          stat.executeUpdate();
        }
        catch (Exception e)
        {
          e.printStackTrace();
        }
        finally
        {
          try
          {
            stat.close();
          }
          catch (Exception e)
          {
            e.printStackTrace();
          }
        }
      }
    
  • How to get the selected row in a programmatic table of the ADF (table generated from a bean)

    Hi all


    We use JDeveloper Studio Edition Version 12.1.3.0.0 and deployed on GlassFish Server Open Source Edition 3.1.2.2 (build 5) and connect to the SQLServer database.


    How to get the selected line in a programmatic (using a SortableModel custom not a display object) ADF table (generated from a bean)?


    We are trying to get the selected row in a bean of a programmatic ADF table to retrieve data based on the selected line.


    Any idea?

    Well, you can use selectionListener to set the selected line to a variable of bean (but this bean must be in extended view or some superiors)

    Something like this: http://www.awasthiashish.com/2015/07/get-selected-row-singlemultiple-from.html

    Dario

  • Create the form for selecting data in multiple tables

    Hello

    I'm getting APEX for the first time and I just read 2 days dev Application Express guide

    I tried to play and I can't create a report with the form that select data from several tables

    What I want to achieve is a report we'll say 'USERS' makes MANAGER_ID ID, NAME, with a form that allows me to create, delete, change users

    The problem is that, once the report with the form created, if I click on create (to create a user) it will ask me for id, name, and manager_id

    I need a water drop down which allows me to select managers in the table manager instead of manually insert Director id

    How do I do that?

    Thank you!

    HI Chris,

    LOV will use this magic.

    Search:

    Kind regards

    BEnjamin

  • I tried to download a pdf and convert them into excel, but the data in excellent is always to the image format.  How can I get the pdf data into the columns and rows?

    I tried to download a pdf and convert them into excel, but the data in excellent is always to the image format.  How can I get the pdf data into the columns and rows so that I can do the calculations?

    If you start the https://forums.adobe.com/welcome Forums Index

    You will be able to select a forum for the specific Adobe products you use

    Click on the symbol "arrow down" on the right (where it is said to see all our products and Services) to open the drop-down list and scroll

  • Get - VM | Select-Object question

    All,

    I am writing a script to get information on all my virtual machines. I have almost everything down packed, but I can't get the data store. I want to output out of to show me what the vm data store resides in.

    Here's what I have so far.

    Get - VM | Select-Object Name, VMHost, NumCPU, PowerState MemoryMB

    Again, I need to be able to tell what vm data store resides in

    Try this:

    Get - VM | Select Name,VMHost,NumCPU,PowerState,MemoryMB,@{N="Datastore; E={$_ | Get-Datastore}}

  • How to get the old data 6 months from the current date?

    Hi friends,

    I have a table which includes historical data, which are having more than 1 years old data. The historical table gets updated once a week. My requirement is that I should get the latest data from the week of each month for 6 months according to the current data. I use oracle 10g.

    Can you please someone help in this.

    Thanks in advance

    SELECT last_day (ADD_MONTHS (TRUNC (SYSDATE, 'mm'),-LEVEL))-7 start_dt.
    LAST_DAY (ADD_MONTHS (TRUNC (SYSDATE, 'mm'),-LEVEL)) end_dt
    OF THE DOUBLE
    CONNECT BY LEVEL<=>

    change as a result, I have provided you the start and end dates for your logic...

  • Get the error data when navigate report of the child.

    Hello

    I'm unable to get current session data, when I browse the parent report child relationship...

    ex, what parent report gave to 12/01/13(date prompt) and then after navigation data shows from 01/10/2013 to this last day... not just 01/12/2013.

    My req is when I select date given in the mother (main report), then when I click on any column the child report also displays the same data to date.

    Thanks for your help.

    Concerning
    Amina

    Make sure that set the Date as is requested in the report of the child.

  • Get VM create Date &amp; time

    Hello

    I'm looking to get the GET the VM code create Date & time.

    The reason why see you the same entries twice was because the events are collected in the VC and the script does not specify a specific cluster.

    The reason why I did not use the - parameter, the Get-ViEvent cmdlet entity was because not all the tasks are performed on a cluster but could belong to a weaker entity in the structure (for example, an ESX host).

    The following adaptation of the script will also include the NOMCLUSTER and the ESX host name where the guest was created.

    You could adapt the script to test on the name of the cluster or ESX host.

    The reason why the name of the cluster and ESX host are obtained in a heavy way is because there seems to be a bug in the references managed object the Get-ViEvent cmdlet returns.

    # How many days in the past to start from
    $start = (Get-Date).AddDays(-10)
    
    # The more days back, the higher this number should be.
    $eventNr = 9999
    
    $report = @()
    
    Get-VIEvent -Start $start -MaxSamples $eventNr | `
    Where-Object {$_.GetType().Name -eq "VmCreatedEvent"} | % {
         $row = "" | Select Date, Msg, User, Cluster, Host
         $row.Date = $_.createdTime
         $row.Msg = $_.fullFormattedMessage
         $row.User = $_.userName
    
         $t = New-Object VMware.Vim.ManagedObjectReference
         $t.type = $_.computeResource.computeResource.type
         $t.Value = $_.computeResource.computeResource.Value
         $row.Cluster = (Get-View $t).Name
    
         $t.type = $_.host.host.type
         $t.Value = $_.host.host.Value
         $row.Host = (Get-View $t).Name
    
         $report += $row
    }
    $report
    
  • selectoneradio gets not selected while filtering in grid...

    Hello

    Worm 11.1.1.3.0 JDev

    I use view based on entities and a transient variable with the String data type...

    I used this variable as a selectoneradio in the grid. I dragged this attribute as a selectoneradio in the grid, select the element contains values 'Y' and 'n'.

    I get the question on filtering, while filtering the selected values are gets not selected... I want that the values must be supported... (selected)

    How to do this? is there another way to do this...?

    give suggestions...


    Kind regards
    Gopinath J

    Published by: GOP on April 30, 2011 09:48

    If I understand you correctly, you have a update y VO a transitional attribute. You have created a with a filter and the table contains a column with a be changed based on the transient attribute.

    I suppose also that filter in the table is based on a criterion of display with a "database" execution mode (for example, on the criteria of "All the attributes that can be interrogated" by default). If this is the case, whenever you enter a condition in the filter and run the filter, a new database query is executed, lines of VO is rebuilt and you lose the values entered in the transient attribute. To avoid the recreation of the rowset (for example to prevent a new run of the DB query) you must base the filter of the table on one 'in memory' view of criteria rather than the default (which is a "database" one). If the criteria to filter display is an "in memory", a set of lines of the VO is not rebuilt, but all existing lines is filtered in memory and you won't lose the values entered in the interim until attribute.

    (There is a field called 'Query Mode' in the definition of display criteria dialog box, where you can select the run mode of the criteria - "Database", "In memory" or "Both".) Create the necessary conditions and select the "In memory" mode).

    Having in mind the fact that the criteria for marking as "in memory" will not filter the lines to the query of database (which will be executed at the start to load the set of lines), so all lines will be extracted, and then they will be filtered in memory. If this is not desired (for example because the number of all the lines is important), you can combine the filter with a panel of which limits the rows from the rowset, and then the filter will filter them in memory.

    Dimitar

  • DVT:pivotFilterBar - how to get the selected values of the filter

    Hi all

    I have a question: how to get the selected values from the pivot table filter bar programmatically?

    I tried to use
    pivotTable.getDataModel().getDataAccess().getValueQDR(startRow, startCol, DataAccess.QDR_WITH_PAGE);
    but to the edge of the side DATA INCORRECTESdeclarations page, it seems that it will return the cached values.

    Environment: JDev 11.1.1.3.0 without tasks.

    Thank you
    Miroslaw

    Hello

    You can retrieve the value selected in the PivotFilterBar through the PivotFilterBar model, instead of dataaccess:

    Download the template of the bar pivot filter instance
    QueryDescriptior queryDescriptor = (QueryDescriptor) pivotFilterBar.getValue ();

    retrieve a list of criterion, each of them is used to fill each lov in the pivot filter bar
    ConjunctionCriterion conjunctionCriterion = queryDescriptor.getConjunctionCriterion ();
    List criterionList = conjunctionCriterion.getCriterionList ();
    for (int i = 0; i)<_criterionList.size(); i++)="">
    AttributeCriterion = (AttributeCriterion) criterionList.get (i) criterion.

    _selected is the currently selected value
    Selected object = criterion.getValues () .get (0);

    System.out.println (_selected);
    }

    Hope that helps,
    Chadwick

  • In the date picker, how can I default to select * dates if the user has...

    In the date picker, how can I default to select * dates if the user does not select a date.
    Thank you
    Doug

    Doug,

    Now lets say l want everything
    

    Could you post some sample data and the output you want to get... ? It would be very easy to understand the requirements...

    When you mean everything, I guess you need all possible dates between date1 and date2.

    You can use... (to asktom.oracle.com).

      1  select to_date('12-jan-2009','DD-MON-YYYY') + rownum -1
      2    from ALL_OBJECTS
      3    where rownum <= (to_date('20-jan-2009','dd-mon-yyyy') -
      4*                     to_date('12-jan-2009','DD-MON-YYYY') +1 )
    sql> /
    
    TO_DATE('
    ---------
    12-JAN-09
    13-JAN-09
    14-JAN-09
    15-JAN-09
    16-JAN-09
    17-JAN-09
    18-JAN-09
    19-JAN-09
    20-JAN-09
    
    9 rows selected.
    
    For your case, since you have date1 and date2...
    
    select to_date(:p12_date1,'DD-MON-YYYY') + rownum -1
      from ALL_OBJECTS
      where rownum <= (to_date(:p12_date2,'dd-mon-yyyy') -
                        to_date(:p12_date1,'DD-MON-YYYY') +1 )
    

    Should work... in my opinion... Have not tested the other by their Summit.

    Is that what you're looking for... ?? If no, please give details...

    Thank you
    Rajesh.

Maybe you are looking for