Date Format in Input Date Component
Hi,
I am using JDev 11.1.1.3.0. I have few Input Date component in the form. I need to display the selected date in upper case. Basically the month in upper case.
Currently it displays '01-Aug-2012'. I need it to be displayed as '01-AUG-2012'.
Tried adding format but still the month is displayed in initial caps. Really appreciate if someone can help me in fixing this issue.
Thanks
SR
There is no format to archive this. Check http://docs.oracle.com/javase/6/docs/api/java/text/SimpleDateFormat.html which give you all format patterns used by the inptutDate component.
I have not tried this, but you should be able to use a converter, which you have to write yourself, to make the month uppercase.
Writing your own converter is easy, for a tutorial check http://docs.oracle.com/javaee/5/tutorial/doc/bnaus.html
Timo
Similar Messages
-
Formscentral - how do I change required date format to long date (e.g. January 2, 2014) in a form field? I can't seem to change it from the short date format.
Hi,
I would suggest you to change the form language to English (UK), Here are the steps:-
1. Open your form in FormsCentral
2. Clik on Options tab
3. Click on Language and Formatting and check out the selection for Form Language and make sure English (U.K.) is selected and the default date format should be day/month/year.
Regards,
Nakul -
Max date data between the input date range.
Hi
I need to get the maximum date data's with in the date range.
Ex: this is sample date but , total records in DB around 2000.
NAME DATE Product1 Product2
aaaa 01/05/2011 5 5
aaaa 03/05/2011 3 3
bbbb 04/05/2011 6 6
bbbb 07/05/2011 2 2
aaaa 06/05/2011 1 1
case :1) If the user input date is 01/05/2011 to 05/05/2011
then the result should be
aaaa 3 3
bbbb 6 6
case :2) If the user input date is 01/05/2011 to 10/05/2011
then the result should be
aaaa 1 1
bbbb 2 2
so my result is purely based on max date between the input date range.
how to achieve the resultDhiva wrote:
Hi
I need to get the maximum date data's with in the date range.
Ex: this is sample date but , total records in DB around 2000.
NAME DATE Product1 Product2
aaaa 01/05/2011 5 5
aaaa 03/05/2011 3 3
bbbb 04/05/2011 6 6
bbbb 07/05/2011 2 2
aaaa 06/05/2011 1 1
case :1) If the user input date is 01/05/2011 to 05/05/2011Jan 05 to May 05
or
May 01 to May 05
what date is 07/08/09? -
Hi everyone,
I am using class object cl_dd_form_area. I have a couple of input elements. Is
there a way to set those input elements to have a text format like a date format?
mm/dd/yyyy ???
Any suggestions would be great.
Thanks,
StephenHi
U can use the statament WRITE with option USING EDIT MASK:
DATA: TEXT_IN(8) VALUE '02122008',
TEXT_OUT(10).
WRITE: TEXT_IN USING EDIT MASK '__/__/____' TO TEXT_OUT.
Max -
We migrated Packages from SSIS 2008 to 2012. The Package is working fine in all the environments except in one of our environment.
SSIS 2012 is intermittently failing with below error while importing data from a source table into a Destination table with same exact schema.
Error: 2014-01-28 15:52:05.19
Code: 0x80004005
Source: xxxxxxxx SSIS.Pipeline
Description: Unspecified error
End Error
Error: 2014-01-28 15:52:05.19
Code: 0xC0202009
Source: Process xxxxxx Load TableName [48]
Description: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 11.0" Hresult: 0x80004005 Description: "Invalid date format".
End Error
Error: 2014-01-28 15:52:05.19
Code: 0xC020901C
Source: Process xxxxxxxx Load TableName [48]
Description: There was an error with Load TableName.Inputs[OLE DB Destination Input].Columns[Updated] on Load TableName.Inputs[OLE DB Destination Input]. The column status returned was: "Conversion failed because the data value overflowed
the specified type.".
End Error
But when we reorder the column in "Updated" in Destination table, the package is importing data successfully.
This looks like bug to me, Any suggestion?Hi Mohideen,
Based on my research, the issue might be related to one of the following factors:
Memory pressure. Check there is a memory challenge when the issue occurs. In addition, if the package runs in 32-bit runtime on the specific server, use the 64-bit runtime instead.
A known issue with SQL Native Client. As a workaround, use .NET data provider instead of SNAC.
Hope this helps.
Regards,
Mike Yin
If you have any feedback on our support, please click
here
Mike Yin
TechNet Community Support -
DVT X Axis Date Formatting using tabular data
Hi,
I have a curious question about the <dvt:attributeFormat>.
I wanted to format my bar graph x-axis with locale sensitive date formatting.
I saw this attribute <dvt:attributeFormat> which I think is the best tool for the job.
<dvt:barGraph id="wsssudg1" subType="BAR_VERT_CLUST" tabularData="#{myBean.tabularData}">
<dvt:a t t r i b u t e F o r m a t >
<af:convertDateTime locale="#{myBean.locale}"/>
</dvt:a t t r i b u t e F o r m a t >
</dvt:barGraph>
My only concern is this. I am not using page binding in building my graph data but using tabularData property instead.
I am passing a java.util.Date object also from my getTabularData method
public class MyBean{
public List getTabularData(){
/*More code her*/
return list;
According to the java docs here http://docs.oracle.com/cd/E24382_01/apirefs.1112/e17490/tagdoc/dvt_attributeFormat.html
The name of the categorical attribute is the name of the attribute/layer that was added to the Graph DataModel. The Graph model can be set declaratively by updating the pagedef. Here is the associated view pagedef for the above graph:
<graph IterBinding="EmpView1Iterator" id="EmpView1"
xmlns="http://xmlns.oracle.com/adfm/dvt" type="BAR_VERT_CLUST">
<graphDataMap leafOnly="true">
<series>
<data>
<item value="Bonus"/>
</data>
</series>
<groups>
<item value="Hiredate"/>
</groups>
</graphDataMap>
</graph
>
..but since I am not using page binding then what name should I put there?
Any DVT experts around?I tried different name but I cant find the correct attribute name. Tried 'object', 'attribute 1' etc but it seems not correct.
<dvt:barGraph id="wsssudg1" subType="BAR_VERT_CLUST" tabularData="#{myBean.tabularData}">
<dvt:a t t r i b u t e F o r m a t >
<af:convertDateTime locale="#{myBean.locale}"/>
</dvt:a t t r i b u t e F o r m a t >
</dvt:barGraph>
Does this mean that this tag only works when you are using page binding?
If you are using tabulardata in managing your data then does it mean that you cannot use this tag?
Then how do you format DVT graph data that uses tabularData if you do not know the attribute name?
The javadoc tag reference does not mention anything about this.
Anyone has experience in dealing with this scenario?
Use case:
How do you format date attribute in a locale sensitive manner when your graph is using custom list in the tabulardata tag property of your graph component.
Thanks -
How to define the date format for this date string
2006-11-13 00:00:00.0
How to define the date format in control file for sqlldr. "yyyy-mm-dd hh24:mi:ss" or "yyyy-mm-dd hh24:mi:ss.FF1" does not work
thanks,SQL> desc t
Name Null? Type
TS TIMESTAMP(6)
SQL> !cat t.ctl
load data
into table t
truncate
(ts timestamp "YYYY-MM-DD HH24:MI:SS.FF1")
SQL> !cat t.dat
2006-11-13 00:00:00.0
SQL> !sqlldr userid=scott/tiger control=t.ctl data=t.dat log=t.log
SQL*Loader: Release 10.2.0.3.0 - Production on Fri Sep 7 11:19:28 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Commit point reached - logical record count 1
SQL> select * from t;
TS
13-NOV-06 12.00.00.000000 AMBest regards
Maxim -
How to compare the current date to an inputed date?
I am having a validation to check if the date is not After the current System Date?
public String getDate_trans()
try {
Date x=new Date();<<Get the current Date
Date date=new Date();
DateFormat formatter ;
formatter = new SimpleDateFormat("yyyy-MM-dd");
date = (Date)formatter.parse(date_trans); <<<Inputed Date
System.out.println(date);
System.out.println(x);
if(date<x)
System.out.print("Date is Valid");
else
System.out.print("Date is invalid");
catch (ParseException e)
{System.out.println("Exception :"+e); }
return date_trans;
}tr3k wrote:
I dunno what to method to use in there...I'm so sorry...The closest method that I could use I think is the compareTo...but I dunno how I can use that to compare using greater than or less than.....Read the docs for that method. READ THE DESCRIPTION. What do you not understand about that?
And there are two other methods that are even simpler. You haven't looked closely enough. -
Change default date format of reports data source
Hi all,
I need to convert an ugly EBS standard charactermode report (Oracle Reports) into the Xml-Publisher format. I'd like to use the existing report as the xml data source as all data is available in the old report.
The problem is that the date format used by reports is determined by NLS_DATE_FORMAT (et al). This date format unfortunately is not xml compliant (dd.mm.yyyy in our case) and so Xml-Publisher date related features (e.g. sort by date) will not work .
The report/template is submitted via the submit concurrent request form.
Is there a way to make the underlying reports produce xml conformant dates without resorting to wild substring operations in the template or changing the EBS standard report?
Thanks
ChristophRajaramanV wrote:
Can i change the nls parameter of a particular column(date field) in a table?if i set that it is apllied to all the tables in the database..No. Please understand that all dates, in all tables are stored in the same, oracle-defined, format. NLS_date_format affects how that internal date is converted to a character string for presentation to humans, or how to interpret a character string (received ,ultimately, from a human) for conversion to that internal format. It (NLS_DATE_FORMAT) can be set at several levels, but table/column is not one of them.
Please read the link I posted in my earlier response. It will clear up your confusion.
Edited by: EdStevens on Feb 1, 2012 6:55 AM -
Date Format for Spry data set sort
Hi
Just feeling my way through the use of Spry Datasets for the
first time and have a couple of issues hopefully someone with more
knowledge of it than me know the answer to.
I had an issue with my Spry Dataset initially that it would
not work in ie7 but was OK in FF3.
After some mucking round I realised the error I was getting -
albeit obscure in IE was telling me it was a date format issue in
my data set.
The db data I am playing with here is fairly simple: I have a
couple of text fields, an integer field that contains the
unixtimestamp of the entry (its a simple diary application) and a
formal date field that holds the same date in mysql's date format.
When I display the date in the dataset I do so in the format
"23rd May 2009" (as an example)- I code this using phps date
function in my xml query.
I had set this field to date format in the Spry dataset
conditions but IE seems to barf on this- I can change it to
textstring but then my sort is done on Alpha/Numeric sort of the
first character in the date field which is rubbish.
I only display the date in this format and one of the other
text fields in my dataset- the unixdate is for programmatic
purposes not general display so I cannot sort on this field if its
invisible. How can I acheive a date based sort with this set up- or
what date formats does Spry code prefer for date sorts? (My client
wants the date to show as I have explained). Many thanks. I have a
second query which I will post separately!
Kenny"Tanushiheadbash" <[email protected]> wrote
in message
news:gqa70o$iat$[email protected]..
> I think I follow what you are saying and in fact I think
its what I
> already
> have. I have set the sort order to use the unixtime when
the page
> initially
> loads and thats OK.
I am sorry, but you aren't following my explanation. English
isn't my mother
tongue, and I am not able to explain it any better.
> However what I need to be able to do is to have the
AJAX/Javascript sort
> (done in this case with Spry- ) to sort on the date when
the column header
> is
> clicked. The problem I have is the date format in this
visible column is
> in
> DDth Month YYYY format and Spry does not recocnise this
as a date format-
> it
> wants it as a string ( or ie gives an error). Maybe its
not possible what
> I am
> trying to do- just thought there might be a clever way
to implement this.
You can take a look at this page:
http://visual.unipv.it/tmt_calendar/admin/reports/events.cfm
Even if all the dates here are incidentally using the
yyyy-mm-dd format, the
dataset display the date from the "start_date_formatted"
field:
<td><a href="javascript:"
onclick="showUpdate('{event_id}')">{start_date_formatted}</a></td>
But uses another field to sort the table:
<th scope="col" spry:sort="start_date">Start
date</th>
You can have the same date, using two different formats,
inside two,
separated dataset fields. One is used for display, the other
one is used for
sort.
You may try to read again my previous explanations, look at
the code in the
page above and see if you get the idea.
Massimo Foti, web-programmer for hire
Tools for ColdFusion, JavaScript and Dreamweaver:
http://www.massimocorner.com -
Date format while downloading data into open office excel
Hi experts,
i am trying to download hr personal data into excel from an internal table using GUI_DOWNLOAD, where date field, in excel, are having 2 different types of date format and the formats are :
1) 05/08/52
2) 22.04.1957
But i want to maintain only one type date format... preferably the 2nd one.
please help me out in this....
with regards.
PraveenHi,
Convert the date fields in the internal table using conversion routines.
Regards
Praveen -
Date format in current date (portal smart text)
Where can I edit colour, format of current date (portal smart text)?
Hi,
This might be a caching issue .. What version of portal are you using..
Can you also change the caching properties for the page so that its never cached..
Thanks,
Anu -
Date format for parameter data entry
I've just started working on MS SQL Server 2008 for the first time and am using Crystal XI11.5. I have a date parameter used to pick data. It works fine but the users are used to entering dates in mm/dd/yyyy format but this parameter forces users to enter using yyyy-mm-dd.
Normally I am not too concerned as there is the calendar but I have a couple of keyboard users who would like to just enter in the date format they are used to. I can't find any spot in Crystal to change the data entry format for the dates.
I do understand that SQL Server does store dates in yyyy-mm-dd format so is this why I only have this option? Any way to change it? I do have dates in the report presenting in d-MMM-yyyy format without problem, it's just the date entry prompt.
TIA rasincThe later versions of CR will not allow you to directly edit the SQL statement. You actually have to add a Command and remove the tables from the data source. You can, if you wish, copy the SQL from the "Show SQL Query" and paste it into the Command.
The reason I tried to delete my previous comment is because it dawned on me (after I made the comment) that the date picker control itself, won't accept any format other than YYYY-MM-DD. So, while you can write the SQL to accept a variety of date formats, you won't be able use any of them while using that control.
The CR date picker control can be found (and therefore replaced by someone w/ more guts than me) in the following locations...
C:\Program Files\Business Objects\Common\3.5\crystalreportviewers115\prompting
C:\Program Files\Business Objects\Common\4.0\crystalreportviewers12\prompting
Jason -
AD 11g Trusted Recon is failing due to invalid Date format for Start Date
We are using OIM 11g with AD 11g connector.
we have mapped "whenCreated" attribute of AD to "Start Date" in OIM. We ran Trusted Recon, the recon failed due to invalid date format.
we got the following error :
Caused By: oracle.iam.reconciliation.exception.InvalidDataFormatException: Invalid data - 10/19/2012 10:33:30 AM against Date format yyyy/MM/dd HH:mm:ss z for key Start Date
at oracle.iam.reconciliation.impl.ReconOperationsServiceImpl.convertReconFieldsToOIMFields(ReconOperationsServiceImpl.java:1610)
at oracle.iam.reconciliation.impl.ReconOperationsServiceImpl.ignoreEvent(ReconOperationsServiceImpl.java:548)
at oracle.iam.reconciliation.impl.ReconOperationsServiceImpl.ignoreEvent(ReconOperationsServiceImpl.java:535)
at sun.reflect.GeneratedMethodAccessor9326.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at oracle.iam.platform.utils.DMSMethodInterceptor.invoke(DMSMethodInterceptor.java:25)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
Thanks.Caused By: oracle.iam.reconciliation.exception.InvalidDataFormatException: Invalid data - *10/19/2012 10:33:30 AM* against Date format yyyy/MM/dd HH:mm:ss z for key Start Date
Error is because of invalid date format.
You need to bring data in required format. As I remember you can configured it in one of the AD configuration lookup. -
UDF to compare the dates with the input date
Hi,
Help me in writing an UDF to compare the input date with start date and end date.
I had written following UDF, but it is not working. we are on XI 3.0
try {
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");
Date sd = df.parse(StartDate);
Date id = df.parse(InputDate);
Date ed = df.parse(EndDate);
if ((sd.before(id) || (sd.equals(id))) && (ed.after(id)) || (ed.equals(id))) {
return true;
else{
return false;
} catch (Exception e){
e.printStackTrace();
Thanks
SrinivasHello Srinivas,
did you import this two classes in your UDF ? java.text.* and java.util.*
In case you did but the program is still not working I just wrote a code without imports. See if this might help. I have tested this with all type of data please test again from your end. I have assumed that if three dates are equal the function return true. I am not sure whether you wanted to exclude the boundary dates. In case you want to exclude those dates just replace '<=' with '<' symbol. The code could have been smarter but in short time I thought this might help.
public class DateRange {
static boolean compareDate(String startDate,String inputDate,String endDate)
int j,k,l;
String s[],i[],e[];
s=startDate.split("-", 3);
i=inputDate.split("-", 3);
e=endDate.split("-", 3);
j=s[0].compareTo(i[0]);
k=i[0].compareTo(e[0]);
l=s[0].compareTo(e[0]);
if(l>0|| j>0 || k>0)
return false;
if(j<=0 && k<0)
return true;
j=s[1].compareTo(i[1]);
k=i[1].compareTo(e[1]);
l=s[1].compareTo(e[1]);
if(l>0|| j>0 || k>0)
return false;
if(j<=0 && k<0)
return true;
j=s[2].compareTo(i[2]);
k=i[2].compareTo(e[2]);
l=s[2].compareTo(e[2]);
if(l>0|| j>0 || k>0)
return false;
if(j<=0 && k<=0)
return true;
return false;
public static void main(String[] args) {
String startDate="1992-04-03";
String inputDate="1992-02-03";
String endDate="1992-02-03";
System.out.println(compareDate(startDate,inputDate,endDate));
Plese let me know if this works.
regards
Anupam
Maybe you are looking for
-
Regarding Conversion of the Charecter field Into Lowercase in an ALV REPORT
HI ALL, I have created an editable alv Report. In which i have a coloumn with charecter field where i can enter 64 charecters. when ever i have enter and moved to another Tab its converting into Capital Letters. I need to stop it conversion. Can any
-
Apple tv update failed. iTunes doesn't recognise the TV
Well Apple has ruined my night. The update failed and I've tried to restore it via iTunes but even when it is plugged in, iTunes doesn't recognise it. Anyone have any answers on how to restore this?
-
Sent mail from iPhone does not sync with AOL mail
When I send mail from my iPhone, it does not appear in my AOL sent folder.
-
ACTIVATION CODES AFTER JOIN CREATIVE CLOUD
I JOIN ADOBE CREATIVE CLOUD ORDER NUMBER 24983583724 I DOSENT REXIEVE THE ACTIVATION CODES FOR MY PROGAMS AND I MY ACCOUNT DOESENT APPEAR THE PURCHASE
-
Still dropping wifi on iMac after 8.1.1 updates
Have been on a few service calls to Apple after installing Yosemite..as my IMac keeps dropping the wifi signal and is stubborn to rejoin..tells me my router is not recognized 15 times..before it accepts it..then drops it after sleep mode. All other