Date "dd/MM/yyyy" / Internationalization BC4J

I'm having troubles to use BC4J Data Tags of Date type in my native format, portuguese. I'm trying to use another mask, the default is "yyyy-MM-dd" and I need "dd/MM/yyyy".
In JDeveloper, I make an entity called "EntX" with an attribute "data" of Date type. JDeveloper recognize my reformulated <JDev>/system/formatinfo.xml to use "dd/MM/YYYY", I defined the controls hints correctly with my locale "portugues (Brasil)".
I had verified that the Property FMT_FORMAT_por_BR is created, different from the documentation that says FMT_FORMAT. I defined FMT_FORMAT property too with the same mask (for test).
I deployed the entity in an Session Bean, I deployed JSP's that use BC4J JSP Tags for an view default created from my entity "EntX".
When I call the JSP, my mask is the default "yyyy-MM-dd".
How can I obtain "dd/MM/yyyy" ?

Thankyou for the hint. I get it to work with
public void whatever
DateFormat simple = new SimpleDateFormat("dd.MM.yyyy HH:mm");
java.util.Date javaDate = new java.util.Date();
try
javaDate = simple.parse("01.01.2005 12:30");
} catch (ParseException e)
java.sql.Timestamp sqlDate = new java.sql.Timestamp(javaDate.getTime());
oracle.jbo.domain.Date nowDate = new oracle.jbo.domain.Date(sqlDate);
setAttributeInternal(MYDATE, nowDate);
but is there an easier and more 'beautiful' way to do this? Like using a date formatter on oracle.jbo.domain.Date instead using the SimpleDateFormat? btw. did I mention that I'm a Forms and PL/SQL programmer ;-)
Regards, Peter

Similar Messages

  • Date Fields...in BC4J??

    hi,
    How can I set default value as SYSDATE in the Date field in View Object- Attribute settings? This should be displayed in JSP.
    How will I specify different formats for Date (dd/mm/yyyy)in JSP created using BC4J ? Another thing is that i have to pass a parameter(date format) and set this format according to the passed parameter. Is there anyway to do this?
    One more problem is if i add any validations to any of the fields thru BC4J-Entity object-Validation Tab ,it will no more accept null values while inserting.Is there anyway by which i can fire the validations only if values are entered to the field and not when the field is null. Note that the field is not mandatory field at all.
    I'm stuck with date here, some pls reply..

    Arun,
    You can set a default date using a before insert database trigger. If you do this, make sure to set the Refresh After Insert checkbox for the date attribute in the Entity Object wizard.
    As for setting the NLS_DATE_FORMAT based on a parameter, one way is to do this from an exported method on the view object. Pass the method the format you want to set, then use JDBC to issue the 'alter session set NLS_DATE_FORMAT' command.
    Laura

  • In IOS 6 my date format was YYYY-MM-DD. When I switched to IOS 7, it changed to MM-DD-YYYY. How do you change it?

    In IOS 6 my date format was YYYY-MM-DD, which is ISO 8601 standard used in Canada.  When I switched to IOS 7, it changed to MM-DD-YYYY format which is very confusing as all my cameras etc use YYYY-MM-DD.  How do you change it, like one can in OSX?

    It appears previous versions of IOS would pick up your preferred date format from your OSX Mac. You can modify that to whatever you like.
    Now if you select Canadian or American in IOS 7 you get only MM-DD-YYYY.  This is wrong for Canada as the preferred date format here is YYYY-MM-DD, just check your birth or expiry dates on your Ontario Drivers License or OHIP Health Card.  Or the date field at the bottom left of any Government of Canada website.
    The trouble with using other Country codes is you tend to get their currency codes like € or £ and the terms like yesterday and today in their language.

  • How to convert Date format from yyyy mm dd   to   dd mmm yyyy in ADF

    Hi,
    I have Date Format in Data Base as yyyy mm dd, but in the UI I want to display the format as dd mmm yyyy, which code I have to write to get the required format in JDev 11.1.2.3

    Hi,
    Use converter : &amp;lt;af:convertDateTime&amp;gt;
    See also : convertDateTime Demo
    -Arun

  • How to create an item with date type mm/yyyy (no day)

    Hello,
    Is it possible to create an item with date type mm/yyyy (no day)? I want the pop-up date picker to just show month and year.
    Thanks,
    Jen

    Hi,
    you cannot pop-up date picker to just show month and year, but you can set your item format as MM-YYYY
    You can check this APEX_ITEM.DATE_POPUP2 at : http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_item.htm#CHDJHBCG (if using apex 4.1) else http://docs.oracle.com/cd/E10513_01/doc/apirefs.310/e12855/apex_item.htm#CHDFDDEI
    Edited by: Sergio_doudou on 2012-04-13 14:26

  • I want to change the date format MM/YYYY to MM.YYYY in web report

    Hi to all experts,
       Here  the problem is: when i run a report for variable input when we select date as MM/YYYY its getting error . Here i need to change MM/YYYY to MM.YYYY. can u please tell me where exactly i need to change means in BEx or Web? if it is BEx where it is exactly pls tell m ethe step to step procedure.
    Its urgent!
    ( I will assign the points if its useful to me)
    Advance Thanks,
    Shah

    Hi Siggi,
            In su01 if we go  and change the date format from MM/YYYY to MM.YYYY  for a particular user ex:ss11 , if another user ex:bst55 try to run the web report he/she may get same error .If we make the change in su01-> default tab->under date format for a particular user , is it work for other users?
    Can u tell me step by step where exactly we need to go in AWB and where need to modify.
    I am looking for ur answer.
    Thanks in Advance
    Shah

  • How can i get todays date as an yyyy-MM-dd format instead of Time stamp

    how can i get todays date as an yyyy-MM-dd format instead of Time stamp,i try to do it in the fallowing way
    <code>
    java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyy-MM-dd");
         java.util.Date d = new java.util.Date();
              String s = d+"";
    Calendar cal1 = Calendar.getInstance();
         try{
         cal1.setTime(sdf.parse(s));
    }catch(Exception e){}
    </code>
    but i could not able to get,it throws error as an java.text.ParseException: Unparseable date: "Thu Jan 24 11:43:32 EST 2002" ,pl suggest me any solution.any help would be appreciated.
    Regards.

    Does string s have to end with ""?
    Try doing sdf.format(d) instead.

  • Convertinf Date format from YYYY-MM-DD to MMDDYYYY

    Hi Experts,
              I want to convert  date format from yyyy-MM-dd  to MMDDYYYY ( i am using this format in the file strucure),
             i tryed using date tranfer funcion source as yyyy-MM-dd and target as yyyyMMdd this is working fine.
    i tryed using date tranfer funcion source as yyyy-MM-dd and target as MMddyyyy this is giving error.
    Please help me out,
    Thanks,
    Dhanush

    Hi,
    From the error it looks like the date value is coming as blank in the source. please give the date in the same format as you have provided in datetrans function and test it again. It will work.
    It might be possible that there are some other date fields in your source where you are not passing any value and using datefunction. please look carefully at all the source structure and data.
    thanks
    amit
    reward point if suggestion works

  • Date Validation In YYYY/MM/DD Format

    Hi All....
                I have developed A conversion Program in which I have struck up with the code of validating the date format in YYYY/MM/DD Format. I should Append the records to the database table T558B in which all the other validations are done. pls help me......

    Hi,
    Use in ABAP this sentence:
       SET COUNTRY t005x-land.
    In table T005X you have in field DATFM the formats for date. (or in tcode OY01)
    I hope this helps you
    Regards
    Eduardo
    Edited by: E_Hinojosa on Feb 14, 2011 5:08 PM

  • Input is 10 digit date (dd/mm/yyyy) some times instead of date they will se

    Hi Experts,
    requirement is
    input is 10 digit date (dd/mm/yyyy) some times instead of date they will send as space(10 digit). it should not fail in PI.
    kindly help me on this.
    regards
    Elton

    HI,
    I have given like
    if input equals to constant(space)
    then constant(space)----
    > here you have to pass constant date / system date
    else
    input
    input -> constant(10 space) -> equals ->if ->
    then -> constant(date) ->target
    else -> input->target filed
    thanks,

  • Web Gallery with Date (dd-mm-yyyy) and Caption metadata only

    Aperture is a great product.
    I would like to add the date (dd-mm-yyyy) and caption to my photos but do not have that combination in the metadata drop down.
    How do I customize this?
    Thanks, Paul.
    iMac Intel Core Duo 20", 2 GB RAM   Mac OS X (10.4.4)   Nikon Coolscan V ED, Nikon D200, Iomega MiniMax Drives

    I want to put caption and date (but not time) on each photo in a photobook. I've finished laying out the book and only just discovered that I can't do it. The metadata button has many options but not caption and date together.
    Any ideas?
    Thanks
    John
    iMac Intel 20"   Mac OS X (10.4.5)  

  • Checks the complete date (mm/dd/yyyy) against another compelete date (mm/dd/yyyy)

    Hi,
    Is there a cold fusion function that checks the complete date (mm/dd/yyyy) against another compelete date (mm/dd/yyyy)?
    I have used the DateCompare but it only checks the month, day or year depending on the precision being used.
    Thanks,
    Mike

    I think you might need to read the docs a bit more closely.  From the docs for dateCompare():
    datePart
    Optional. String. Precision of the comparison.
    s Precise to the second (default)
    n Precise to the minute
    h Precise to the hour
    d Precise to the day
    m Precise to the month
    yyyy Precise to the year
    Indeed, even by default its behaviour is not what you suggest it is.
    Adam

  • Why is this date{MM-DD-YYYY} not a valid pattern?

    I'm tyring to define a new date pattern, date{MM-DD-YYYY}, in Adobe Desinger 7 and it kept saying the pattern is not valid. Please help.

    Never mind. I got it.

  • Date format into "YYYY/MM" format

    Hi Team,
    I have two tables having date field in common.I want to apply inner join between two tables on date field.However joining condition is based on date with format as "YYYY/MM" Format.
    Somehow, it should look like below.
    Select Date from A inner join B on (ConversionFunction for YYYY/MM A.Date) = (ConversionFunction for YYYY/MM B.Date)

    Hi
    You can try this
    Select * from A inner join B On year(A.Date)= year(b.Date) and Month(A.Date)=Month(B.Date)
    Ref :
    http://stackoverflow.com/questions/45535/get-month-and-year-from-a-datetime-in-sql-server-2005
    http://www.w3schools.com/sql/func_datepart.asp
    Mark as ans if you find it useful
    Shridhar J Joshi Thanks a lot

  • Production date in mm/yyyy format at MIGO

    Hi All,
    I am doing MIGO for a purchase order and entering the production date for a batch managed material. I have noticed that if I enter the date in format mm/yyyy i.e 10/2010 then the date is interpreted as 10/20/2010. Is there a way I can force it to accept and enter production date in mm/yyyy format only.
    Thanks a lot.

    Hi ,
    In users profile own data , System - user profile - own date , in the default tab you can change the values of the same .
    Else if you have authorizations then you can use the T code SU01 to make the changes in defaults tab.
    Select the format in which you intend to enter the data , please remeber that in case of batch management you need to give - date/month/year - you simply cant give month and year .
    Hope this helps .
    Regards ,
    Dewang T.

Maybe you are looking for

  • Replace the following open/fetch/close statements with a cursor FOR loop

    Hi anyone could you please help me, I would like to replace the following open/fetch/close statements with a cursor FOR loop. Codes are: CREATE OR REPLACE PROCEDURE COMOES.orchid_shipment_interface IS   -- get the com shipment header records   CURSOR

  • 3750 Integrated WirelessLAN Controller: Operational Status:resetting

    Hi there! A customer has a WS-C3750G-24WS-S50 WLC-Controller with exactly 50 APs. But those 50 Accesspoints are never completely registered to the WLC. Mostly there are 48-49 accesspoints registered but never 50. The WLC is losing them randomly. It i

  • Internal Order -Systeme Requirement

    Internal Order accounting  provides you with  a comprehensive  suite of features such as status management, commitments management, detailed reports, and analysis that helps you monitor your jobs through their entire lifecycles Give me the T-Codes fo

  • 'Parallel Depreciation Area 41 is not posted'u200F

    I am trying to run the inflation program (TS J1AI), the problem is that I need the inflation area for the parallel currency (41) take the inflation information in parallel currency. When I run the batch the system shows me this message 'Parallel Depr

  • Macs crashing routers?

    I have encountered a number of incidents where it appears that Macs are causing wireless routers to fail catastrophically. We had a DLink wireless router in my office, and periodically it would stop serving out IP addresses to clients. The router wou