<; dateformat: create, get the date in en_GB, es_ES instance
Hello
I don't know if it's a bug or normal behavior:
I get the date in en_GB, but I ask the date to es_ES, the snippet of code below:
< ics:if condition =' < % = ics. GetList ("FechaBlog")! = null & & ics. GetList("FechaBlog").hasData () % > ' >
< ics:then >
< ics:listget listname =' < % = "FechaBlog" > "fieldname = 'value' output ="Cash out"/ >"
< local: create varname = "currLocale" nomlocale = "es_ES" / >
< dateformat: create name = datestyle 'PostDateFormat' = 'average' timezoneid = "Europe/Madrid" locale = "currLocale" / >
< name dateformat:getdate = "PostDateFormat" value = "< % = ics." GetVar ("cash") % > ' valuetype = "jdbcdate' varname ="FormattedPostDate"/ >
< / ics:then >
< / ics:if >
22-may-2015
I expect to get: 22 -mayo- 2015; But if change the 'average' datestyle to "long", I am getting:
2015 22 Mayo
as expected, in es_ES.
This is the normal behavior? WCS 11.1.1.8
Kind regards
Hello Jorgitoito,
This is how Java has shaped the date in Spanish. It is not specific to the WebCenter Sites.
You can give it a try with this simple Java code:
java.util.Locale locale = new java.util.Locale("es", "ES"); java.text.DateFormat mediumFormat = java.text.DateFormat.getDateInstance(java.text.DateFormat.MEDIUM, locale); System.out.println(mediumFormat.format(new java.util.Date())); java.text.DateFormat longFormat = java.text.DateFormat.getDateInstance(java.text.DateFormat.LONG, locale); System.out.println(longFormat.format(new java.util.Date()));
The results I got:
27-May-2015
2015 27 Mayo
I suspect that 27-May-2015 here is not in English; It is simply the first three letters of mayo.
Kind regards
Stephan.
Tags: Fusion Middleware
Similar Questions
-
Compare and get the data in the tables (see post for details)
I have two tables TableA and TableB. I struggle to write a query to get the dates of TableB (instead of TableA dates) where TableA dates don't coincide with the tableB (beginning and end).
Example 1: For account A1234,.
TableA got 2 rows 1/31/2014-3/3/2014 (which corresponds to TableB row), but TableA got another rank 31/01/2014 - 31/01/2014 that corresponds with the date of TableB Begin. In this case, I'm looking for output as below,
Use TableB start and end date and combine number two rows from TableA for this account
ACCOUNT TableB_BEGIN TableB_END AMOUNT A1234 31/01/2014 03/03/2014 100.0000000000 Example 2: For the B7777 account.
TableA end date aligns with the end dates of TableB for this account, in this case I want out put as,.
Use TableB start and end date and get the amount of TableA
ACCOUNT TableB_BEGIN TableB_END AMOUNT B7777 05/04/2013 06/05/2013 200.0000000000 Example 3: On behalf of D5555,.
Even a TableA line corresponds with TableA, there are two other rows in TableA matching start date with TableA and correspondence with the end date with TableA, in this case, that I put as,.
Use TableB start and end date and combine number three rows from TableA for this account.
ACCOUNT TableB_BEGIN TableB_END AMOUNT D5555 08/08/2014 10/09/2014 1100.0000000000 Example 4: To account E6666.
Table corresponds to a row with TableB and no additional lines in TableA, just display the data in A table
Tables and data:
create table TableA ( Account varchar2(10) not null, Begin date not null, End date not null, Amount number(19,10) not null ) ; create table TableB ( Account varchar2(10) not null, Begin date not null, End date not null, Amount number(19,10) not null ) ; TableA Data: insert into tablea (ACCOUNT, BEGIN, END, AMOUNT) values ('A1234', to_date('31-01-2014', 'dd-mm-yyyy'), to_date('31-01-2014', 'dd-mm-yyyy'), 0.0000000000); insert into tablea (ACCOUNT, BEGIN, END, AMOUNT) values ('A1234', to_date('31-01-2014', 'dd-mm-yyyy'), to_date('03-03-2014', 'dd-mm-yyyy'), 100.0000000000); insert into tablea (ACCOUNT, BEGIN, END, AMOUNT) values ('B7777', to_date('18-04-2013', 'dd-mm-yyyy'), to_date('06-05-2013', 'dd-mm-yyyy'), 120.0000000000); insert into tablea (ACCOUNT, BEGIN, END, AMOUNT) values ('C6666', to_date('25-06-2014', 'dd-mm-yyyy'), to_date('08-07-2014', 'dd-mm-yyyy'), 10.0000000000); insert into tablea (ACCOUNT, BEGIN, END, AMOUNT) values ('D5555', to_date('08-08-2014', 'dd-mm-yyyy'), to_date('16-08-2014', 'dd-mm-yyyy'), 1000.0000000000); insert into tablea (ACCOUNT, BEGIN, END, AMOUNT) values ('D5555', to_date('08-08-2014', 'dd-mm-yyyy'), to_date('10-09-2014', 'dd-mm-yyyy'), 0.0000000000); insert into tablea (ACCOUNT, BEGIN, END, AMOUNT) values ('D5555', to_date('16-08-2014', 'dd-mm-yyyy'), to_date('10-09-2014', 'dd-mm-yyyy'), 100.0000000000); insert into tablea (ACCOUNT, BEGIN, END, AMOUNT) values ('E6666', to_date('01-01-2014', 'dd-mm-yyyy'), to_date('01-02-2014', 'dd-mm-yyyy'), 100.0000000000); TableB Data: insert into tableb (ACCOUNT, BEGIN, END, AMOUNT) values ('A1234', to_date('31-01-2014', 'dd-mm-yyyy'), to_date('03-03-2014', 'dd-mm-yyyy'), 100.0000000000); insert into tableb (ACCOUNT, BEGIN, END, AMOUNT) values ('B7777', to_date('05-04-2013', 'dd-mm-yyyy'), to_date('06-05-2013', 'dd-mm-yyyy'), 200.0000000000); insert into tableb (ACCOUNT, BEGIN, END, AMOUNT) values ('C6666', to_date('06-06-2014', 'dd-mm-yyyy'), to_date('08-07-2014', 'dd-mm-yyyy'), 10.0000000000); insert into tableb (ACCOUNT, BEGIN, END, AMOUNT) values ('D5555', to_date('08-08-2014', 'dd-mm-yyyy'), to_date('10-09-2014', 'dd-mm-yyyy'), 1100.0000000000); insert into tableb (ACCOUNT, BEGIN, END, AMOUNT) values ('E6666', to_date('01-01-2014', 'dd-mm-yyyy'), to_date('01-02-2014', 'dd-mm-yyyy'), 100.0000000000); SELECT A.ACCOUNT, A.BEGIN, A.END, A.AMOUNT, B.ACCOUNT, B.BEGIN, B.END, B.AMOUNT FROM TABLEA A LEFT JOIN TABLEB B ON A.ACCOUNT = B.ACCOUNT
Hello
SeshuGiri wrote:
Hi Frank,.
Your query/solution works very well, but I forgot to mention something in the first post...
Please insert these additional lines and try the request again.
TableA Additional lines:
- Insert into TABLEA (ACCOUNT, BEGIN, END, QUANTITY)
- values ('F9999', to_date (January 2, 2014 ',' dd-mm-yyyy ""), to_date (3 January 2014 ', 'dd-mm-yyyy'), 999.0000000000);
- Insert into TABLEA (ACCOUNT, BEGIN, END, QUANTITY)
- values ('A1234', to_date (March 3, 2014 ',' dd-mm-yyyy ""), to_date (4 March 2014 ', 'dd-mm-yyyy'), 999.0000000000);
TableB Additional lines:
- Insert into TABLEb (ACCOUNT, BEGIN, END, QUANTITY)
- values ('A1234', to_date (March 3, 2014 ',' dd-mm-yyyy ""), to_date (4 March 2014 ', 'dd-mm-yyyy'), 999.0000000000);
Question 1:
The table has a rows for A1234 account (i.e. the time period different than the ranks for the same account)
one is A1234 31/01/2014-03/03/2014, A1234 03/03/2014-03/04/2014
Your query that returns two rows for A1234 account (which is what I want), but the amount is messed up.
ACCOUNT BEGIN END TOTAL_AMOUNT 1 A1234 31/01/2014 03/03/2014 1100 2 A1234 03/03/2014 03/04/2014 1100 Except:
ACCOUNT BEGIN END TOTAL_AMOUNT 1 A1234 31/01/2014 03/03/2014 101 2 A1234 03/03/2014 03/04/2014 999 Question 2:
In some cases TableA will have an account (F9999), but the TableB don't. I can just this line by making the Left Join right join?
I don't get the results with additional data. I get 1099 for two lines where account = 'A1234 '. I get 1100 as the amount on the line with the account = "D5555. You did it other changes to data?
Except:
ACCOUNT BEGIN END TOTAL_AMOUNT 1 A1234 31/01/2014 03/03/2014 101 2 A1234 03/03/2014 03/04/2014 999 Still, I don't see why you want to 101 for the amount of the first row. Why not 100?
How can you know which rows from tablea should get attached to what rows from tableb, when the account is not unique?
Maybe you want something like this:
SELECT a.account
b.begin
b.end
SUM (a.amount) AS total_amount
FROM tablea a
ON a.account = b.account JOIN tableb B
AND a.begin BETWEEN b.begin
AND b.end
AND a.end BETWEEN b.begin
AND b.end
GROUP OF a.account, b.begin, b.end
ORDER BY a.account
;
but I guess just to your needs, and guessing is not a very good or reliable way to solve problems.
Question 2:
In some cases TableA will have an account (F9999), but the TableB don't. I can just this line by making the Left Join right join?
Yes, it looks that you want an outer join. What happened when you tried? As always, post your code, the exact results you want from the given sample data, as well as an explanation of how you get these results from these data.
-
Code to get the data in the child table in composite SOA using the IOM APIs
Hi all
I am a new bie to IOM. I have a query related to obtaining data in the child table using the API of the IOM in the task of embeded java SOA composite.
I've created a workflow that has a form of child of providing service of slef. I created a composite SOA custom also approval. In the composite approval I have embedded java code and I want to get the values entered in the child form using the API IOM inot the java code embeded in composite SOA.
I tried gettting the child form data by using getChildAttributes(), but I'm getting the following exception.
The local Exception stack:
Exception [EclipseLink-7242] (Eclipse - 2.1.3.v20110304 persistence Services - r9073): org.eclipse.persistence.exceptions.ValidationException
Description of the exception: an attempt was made to navigate a relationship using indirection that had a null Session. This often happens when an entity has a relationship of LAZY not instantiated is serialized and this lazy relationship is crossed after serialization. To avoid this problem, instantiate the LAZY relationship before serialization.
at org.eclipse.persistence.exceptions.ValidationException.instantiatingValueholderWithNullSession(ValidationException.java:994)
at org.eclipse.persistence.internal.indirection.UnitOfWorkValueHolder.instantiate(UnitOfWorkValueHolder.java:218)
at org.eclipse.persistence.internal.indirection.DatabaseValueHolder.getValue(DatabaseValueHolder.java:83)
at oracle.iam.request.vo.RequestBeneficiaryEntityAttribute.getChildAttributes(RequestBeneficiaryEntityAttribute.java:100)
to com. CASApproval.main (CASApproval.java:137)
Please suggest me if I'm following the correct procedure of the child form data or if we can use another approach.
Can we get the data using formInstanceOperationsIntf.getProcessFormChildData ().
Thanks in advance for the help.
Thank you
PTWhen you're in approvals, there is no form of process data. Process form data would come only when approvals are completed. If you want to read data from the child form of the DataSet (i.e. the form object as in OIM9.x) you can use the RequestService on the id of the request and read the data. Or another approach would be to the child the dataset data value in the payload of the request and read the XML payload in the composite.
Let me know if you need more information about the second approach. As for the first approach, search through the forums here and you should find my previous posting on how to reach child dataset values using the ask service API.-Marie
Found these for you:
OIM11G: Way to get values from dataset of the application for approval
Re: How to get the value of the AD details of payload of SOA user group -
How to write a simple select query to get the data of the table as an XML.
How to write a simple select query to get the data of the table as an XML. In the query, I'm just adding items below which i need be there in the XML document
I have need to add the root tag as well in the beginning and the end of < root > < / root > this xml file. Please advice if this is possible with the select queryselect '<test_tag>'||EMP_NAME||'</test_tag>','<date>'||sysdate||'</date>' from temp_table where id_num BETWEEN 1 AND 10;
without using XMLGEN, XMLQUERY or any other packages built and function?I need to URL escapes with the UTF-8 code points that we have already achieved using the utl_http package. Please help how to do that without using the utl_http package.
What is wrong with him?
At present, the only way I can think of to avoid a call to UTL_HTTP. SET_BODY_CHARSET is to write your own little wrapper.
In this way, you can specify the Boolean parameter or omit it if you choose to use named parameters:SQL> create or replace function my_url_escape (url in varchar2) 2 return varchar2 3 deterministic 4 is 5 begin 6 return utl_url.escape(url, false, 'AL32UTF8'); 7 end; 8 / Function created SQL> select my_url_escape('http://some.uri.com/param?lang=fr&text=contrôle') from dual; MY_URL_ESCAPE('HTTP://SOME.URI -------------------------------------------------------------------------------- http://some.uri.com/param?lang=fr&text=contr%C3%B4le
-
How to get the date of Sunday of the week
Hello
I have a column date 'start_date', I need to create a report for all the weeks from Sunday, for example:
I need to get the dates of the week in the form:
mm/dd/aa-23/01/11, 01/16/11, 09/01/11 and so on...
Help, please
Thank you...Hello
To find the last Sunday before or equal to start_date:
SELECT TRUNC ( start_date + 1 , 'IW' ) - 1 AS week_start_date ...
You can also use an expression like that in a GROUP BY clause.
It's not you NLS parameters. Always ISO weeks start on Monday. Your week begins 1 day earlier, that is why the above expression is the + 1 and -1.
(According to the parameters of the NLS)SELECT TRUNC ( start_date , 'D' ) AS week_start_date ...
could do the same thing, but I still have rocommend with "IW"; a few extra touches is not big thing to pay for a guarantee that it will still work.)
I hope that answers your question.
If not, post a small example of data (CREATE TABLE and INSERT statements) and the results desired from these data. -
Hello everyone,
How can I create a query having 2 date and 2 variable of the type:
Thanks in advancefrom 1 date 05/06/2004 to 2 date 15/06/2004 yes for 2 days no for 1 day that is, i wish get the date with yes for 2 days and not for 1 day, this is, that I want 05/06/2004 sabato 06/06/2004 domenica 08/06/2004 martedì 09/06/2004 mercoledi 11/06/2004 venerdi 12/06/2004 sabato 14/06/2004 lunedi 15/06/2004 martedi
Hello
The WHERE clause controls the lines will appear.
If your needs change, change the WHERE clause to reflect their.For example:
DEFINE from_date = "TO_DATE ('05/06/2004', 'DD/MM/YYYY')" DEFINE to_date = "TO_DATE ('15/06/2004', 'DD/MM/YYYY')" DEFINE yes_cnt = 3 DEFINE no_cnt = 2 SELECT &from_date + LEVEL - 1 AS dt FROM dual WHERE MOD ( LEVEL , &yes_cnt + &no_cnt ) BETWEEN 1 AND &yes_cnt CONNECT BY LEVEL <= 1 + &to_date - &from_date ORDER BY dt;
This will work as long as you want the first & yes_cnt lines to display (assuming that there are many) and the following lines & no_cnt don't step to display, and then another & yes_cnt lines to display and the other & no_cnt lines not to display and so on.
I guess & yes_cnt is a positive integer and that & no_cnt is a non-negative integer. (I.e. & no_cnt can be 0)
-
Get the date with the millisecond of the table
I want to get the date with milliseconds in table format in the variable. How to get there?
SQL > create table test_date (col1 date);
Table created
SQL > insert into test_date values (sysdate);
1 row inserted
SQL > commit;
Validation complete
SQL > select * from test_date;
COL1
-----------
18/12/2009
Here I have to get datewith "millisecond" format and put it into the variable varchar2 (50) and pass this
to Java.
SQL > select to_char (COL1, ' mm/dd/yyyy hh24:mi:ss. FF') of test_date;
Select to_char (COL1, ' mm/dd/yyyy hh24:mi:ss. FF') of test_date
ORA-01821: date format not recognized
SQL >
Thank you
Khaldiuser601042 wrote:
I want to get the date with milliseconds in table format in the variable. How to get there?SQL > create table test_date (col1 date);
Your data col1 type should be TIMESTAMP.
See you soon
Sarma. -
How can I get the data view to display the same amount of time I save?
I use the Sound and Vibration Measurement Suite. In the data view, I display a graph of time, the power spectrum, the Color Map and the waterfall. I am also showing strength in numbers group for several bands and doing cutting-edge research. I record 100 ms of the transient wave. In the data view, why the temporal plots show several seconds of data? What determines how much time will appear in the data view? More important, the power spectrum reflects the power for the entire of several seconds of data displayed? Same question for power in the values of band and cutting-edge research. I want to just this data displayed for 100 ms of the wave that I record. So, how can I get the data displayed (waveforms) and power numbers come only 100 ms of the recorded wave?
Finally, what is the best way to make account concisely the recorded data? By slide numbers on the Documentation tab is not concise, because it comes with graphics, etc.. I tried save as ASCII/LVM, but I get a bunch of stuff intermiated I don't care. Help?
Hi TimRsandiego,
SignalExpress is programmed to display graphs with default scales based on the type of action, it's reading. These scales and settings can be changed by right-clicking on the graph, and then select Properties.
If you are interested to learn more about how to use SignalExpress, I would recommend checking out some demonstrations/tutorials on NI.com. You can find some of these demos at the following location:
Let me know if you have any other questions.
Kind regards
-
Can someone show me how to get the data of this vi in four columns in a spreadsheet file.
I'm trying to get the data into four columns on a worksheet. The data consists of two channels and two measures, a maximum voltage and a voltage after x seconds. I enclose the code. Any help would be great. Thank you.
-
Hi all
I'm using Labview 8.5.
I'm trying to get the date system.
I use the Format Date/time string in a "%Y %m %d' format.
The PROBLEM is the Format Date/time string return "YYYYMMDD" only.
Please see my attachment to see.
Please help me with this, whenever I encounter this problem it force to reinstall labview program.
Best thanks!
-
How to get the Date, month, year of the DateTimePicker
Hi, I am using the DateTimePicker.
There are several question about this command:
1. how to get the Date, month and year?
-With the help of myDateTime.value, I get this string ' Wed May 08 14:45 ICT 2013 '-> I have to manually analyze this? Because I need in format yyyy/mm/dd. Or can set the format of dateTimePicker.value?
2 format on dateTimePicker self (on the user interface) is d/m/YY, I can't change to another format?
Thank you
dateTimePicker.value return a QDateTime not a string.
https://developer.BlackBerry.com/Cascades/reference/bb__cascades__datetimepicker.html#property-value
See more:
https://developer.BlackBerry.com/Cascades/reference/QDateTime.html#date
https://developer.BlackBerry.com/Cascades/reference/QDate.html
You can get
day = dateTimePicker.value.date().day() month = dateTimePicker.value.date().month() year= dateTimePicker.value.date().year() dateYYYYMMDD = dateTimePicker.value.date().toString(Qt::ISODate) dateYYYYMMDD2 = dateTimePicker.value.date().toString("YYYY/MM/DD") dateYYYYMMDD3 = dateTimePicker.value.toString("YYYY/MM/DD")
-
Help, please:
I am trying to get the data from the internet in the Simulator. The browser wirks fine and I am able to navigate... but I'm nt get any :-(
Here is my code:
String url =
"http://www * & format = json;
C = HttpConnection
null;
InputStream is =
null;
int rc;
try {
c = (HttpConnection) Connector.open (url);
Get the response code is open the connection,
Send the request and read HTTP response headers.
The headers are stored until asked.
RC = c.getResponseCode ();
if (rc! = HttpConnection.HTTP_OK) {
throw new IOException ("HTTP response code:" + rc);
}
is = c.openInputStream ();
Get the ContentType
The string of type = c.getType ();
The length and process data
int len = (int) c.getLength ();
if (len > 0) {
int actual = 0;
int BytesRead = 0;
byte data = newbyte[len];
while ((bytesread! = len) & (real! = - 1)) {
real = is.read (data, bytesread, len - bytesread);
bytesRead += real;
}
}
else {
int ch;
while ((ch = is.read (())! = - 1). {
}
}
}
catch (E ClassCastException) {
throw new IllegalArgumentException ("not a HTTP URL");
}
finally {
if (is! = null)
is. Close();
if (c! = null)
c.Close ();
}
Are you runing the MDS Simulator? It must be upon the connection form the Simulator, unless you specifically request a direct connection by adding «;» deviceside = true' to your URL.
-
Hello
I lost the password I gave to a drive using Bitlocker in Windows 7, how can I return it or I can get the data in the back of the player? Data are very important because by my studies are concerned. Help, please. Thank you!Hello
I lost the password I gave to a drive using Bitlocker in Windows 7, how can I return it or I can get the data in the back of the player? Data are very important because by my studies are concerned. Help, please. Thank you!People like you that encryption data with bitlocker do it because they want their data accessible only by those who have the certificate. The sad news for you is that you have made a good choice with BitLocker: unless you have the certificate, your data remains inaccessible. There is no backdoor. If he had then BitLocker would be useless. -
Will system restore remove e-mail accounts created after the date of the restore point?
Original title: System restore
Will system restore remove e-mail accounts created after the date of the restore point
Hello Nick,
The emails and your gmail account settings would not be affected. But, if you have configured your user account in Windows 8 with the newly created Gmail account, these configurations too after the restore point then only, would be affected not the main account to the Gmail server.
I hope this helps. Otherwise, feel free to write us again for more assistance, and we will be happy to help you come.
Thank you
-
How can I get the date and time function to appear as a tile
How can I get the date and time function to appear as a tile
How can I get the date and time function to appear as a tile
WIN8 are delivered with this tile/app. The only way to display the time is to launch the charm bar (Win - key + C) or mouse over to the right up/down. That said go to the Windows store... There are several free applications that display the time / date as a live tile. Good luck.
Maybe you are looking for
-
How to put windows xp on a cd to run on another computer?
My Tower went and I was provided with my acer recovery CD, I can't find my windows xp since it is my operating system
-
Hello! I use Windows Vista on my laptop. Currently I have about 8 GB of space on my drive of 70 Gig. There is no way that I have that much data on my machine... My question is: Is it possible for me to check and see if the files are be duplicated or
-
32 bit conversion to 64 bit system hardware
Of Arvin in Denver How can I get my 32 bit HP 6122 deskjet printer to work on my new windows 7?
-
Hello everyone, it's great to be part of the social network of bb and I really hope you guys can help me! It's a very miserable situation for me. Last weekend, my BB Bold 9700 got stolen. My CP (SIM) - map has already been disabled. So far, I have no
-
Windows 7 desktop shortcut target changed to one of the programs that I installed on my computer
I have a Windows 7 computer, about 2 years. My goals of desktop shortcut changed recently to one of the programs that I installed on my computer. I can't go to programs and make a shortcut on my desktop which works. They all change to 1 program I