How to get the date, the hour and minute of timestamp
Hello
I use Oracle 11.2.0.3.
I want to show a timestamp in this format:
dd/mm/yy HH24
I have treid this:
select TO_char('18-SEP-13 11.29.00.000000 AM','dd/mm/yy hh24:mi') from dual
But, I got:
ORA-01722: invalid number
Can you please help.
You convert a string not a timestamp. First convert the string to timestamp, then use TO_CHAR.
Select to_char
(
TO_TIMESTAMP (18-SEP-13: 11.29.00.000000 AM ',' DD-MON-RR hh.) AM FF ')
, ' dd/mm/yy HH24.
) val
of the double
Tags: Database
Similar Questions
-
How to get the hour format system?
Hi all
How to get the hour format system, I mean what format 24 / 12 system uses?
Looks like the CalendarSettings class is perhaps the official way: https://developer.blackberry.com/native/reference/cascades/bb__pim__calendar__calendarsettings.html#...
-
How to get the second and third weekend of every month over a period of time?
Hello
No idea how to get the second and third weekend of every month on a given period without use of CLAUSE?
Thanks in advance.
Try it below,
SELECT CASE WHEN TO_CHAR (ADD_MONTHS (TRUNC(startdate,'MM'),(LEVEL-1)), 'DY') = 'SAT '.
THEN ADD_MONTHS (TRUNC(startdate,'MM'),(LEVEL-1)) + 1
WHERE TO_CHAR (ADD_MONTHS (TRUNC(startdate,'MM'),(LEVEL-1)), 'DY') = 'Sun '.
THEN ADD_MONTHS (TRUNC(startdate,'MM'),(LEVEL-1)) + 6
Of OTHER NEXT_DAY (ADD_MONTHS (TRUNC(startdate,'MM'),(LEVEL-1)), "SAT") + 1
END as second_weekendday,
BOX WHEN TO_CHAR (ADD_MONTHS (TRUNC(startdate,'MM'),(LEVEL-1)), 'DY') = 'SAT '.
THEN ADD_MONTHS (TRUNC(startdate,'MM'),(LEVEL-1)) + 7
WHERE TO_CHAR (ADD_MONTHS (TRUNC(startdate,'MM'),(LEVEL-1)), 'DY') = 'Sun '.
THEN ADD_MONTHS (TRUNC(startdate,'MM'),(LEVEL-1)) + 7
Of OTHER NEXT_DAY (ADD_MONTHS (TRUNC(startdate,'MM'),(LEVEL-1)), "SAT") + 7
END AS third_weekendday
FROM (SELECT SYSDATE startdate,
SYSDATE + 300 enddate
THE DOUBLE)
CONNECT BY LEVEL<=>=>
-
How to get the width and height of Flex Mobile view?
Hello
The following instructions can get the width and height of the current Flex app:
var request: UIComponent = FlexGlobals.topLevelApplication as UIComponent;
trace (application. Width);
trace (application. Height);
But I don't know how to get the width and height of mobile display Flex current (i.e. the content size excludes bar action and the Navigation bar). Why the "this.width" always returns 0?
Thank you!
Looks like you're running in this bug: https://bugs.adobe.com/jira/browse/SDK-30070
-
Add the hours and minutes so far
Hello
I need to write a function that has two input parameters.
Parameter1 = > Date data type, the value is in GMT.
Parameter1 = > string value that indicates the time difference and it has the following format.
GMT (sign) HH24Mi
for the examples:
GMT + 400, GMT-1400
I need to add the offset (param2) to date (param1) and returned as output.
I wrote a simple code but cannot make it work. I would like to know if there is another way to do it.
Thank you.create or replace Function F_FUNCTION_NAME(dt date,timeZoneOffset in varchar2) return date As offset varchar2(9); Begin Offset := (To_Char(Substr(Substr(Timezoneoffset,4),0,Length(Substr(Timezoneoffset,4))-2)||':'||Substr(Substr(Timezoneoffset,4),-2))); return Dt + interval Offset hour to minute; End;
Hello
Delete GMT and use the colon between the hours and minutes in this way:
ALTER SESSION SET nls_date_format='DD-MON-YYYY HH24:MI:SS'; SELECT SYSDATE , CAST (CAST (SYSDATE AS TIMESTAMP WITH TIME ZONE) AT TIME ZONE '+4:00' AS DATE) offset_date FROM DUAL; SYSDATE OFFSET_DATE ---------------------- ---------------------- 06-MAR-2013 12:08:01 06-MAR-2013 15:08:01
Kind regards.
Al -
How to get the length and sub lymph nodes.
Hello
find the script below.
< List1 >
< list >
< List1 >
< List1 >
< List1 >
< / list >
< list >
< List2 >
< List2 >
< List2 >
< / list >
--
--
-
-
-
-< / list1 >
Here the tag list will be growing based on the I / p. Now what I want is to know how to get the length of the tag < list >.
To implement the above I used the code below
var number = xfa.record.List1.List [0].nodes.length; (Does not work)
But if var account = xfa.record.List1.nodes.length; (work)
and also I want to delete a tag inside the < List > tag. How?
Very Urgent.
Thanks in advance.
Yes, you need to use the name instead of the value to get the tag name...
xfa.datsets.data.Root.nodes.item (0) .name
Thank you
Srini
-
How can I get the phone and messages apps in my dock? And for some reason, I discover now all my app pages from the middle of my phone and not at the top?
Try
Settings > general > reset > reset home screen presentation.
Note: All other applications will be organised by alphabetical order.
-
I changed my google chrome browser and I finally got my confiquered pc and printer. He is an all-in-one 2840 color laser jet. How do I get the scan and fax utilities to perform?
It is useful to include the manufacturer and model number.
What version of Windows you have, including the service pack?
How the device is connected to your computer (USB, Ethernet, other)?
Have you installed the software that came with your HP Color LaserJet 2840 AiO printer?
If not, why? If you did, what error messages you are seeing? Please report messages completely, without paraphrasing.
Start here: HP Color LaserJet 2820 and 2840 AiO products Series - first installation and install
-
How to get the number and the name of the contacts selector
Hi all
I got the Contact Picker work but I have no idea how to get the selected telephone number and the name.
There are attributes that I can put like contactId.value () to retrieve or there is another way?
Thanks in advance.
ImageButton{ defaultImageSource: "asset:///images/bluebutton.png" onClicked: { contactPicker.open(); } attachedObjects: [ ContactPicker { id: contactPicker onContactSelected: { result.text = "You chose contact: " + contactId; } } ] } Label { id: result text: "You chose contact: " }
Hello
You can get the contact name and phone number as this,
ImageButton{ defaultImageSource: "asset:///images/bluebutton.png" onClicked: { contactPicker.open(); } attachedObjects: [ ContactPicker { id: contactPicker onContactSelected: { result.text = "You chose contact: " + contactId; // call a cpp method to get the details
app.getDetails(contactId); } } ] } Label { id: result text: "You chose contact: " }
the CPP code:
void ContactDetails(ContactId id) { Contact contact_info = m_contactService->contactDetails(id); QString firstName = contact_info.firstName(); QString lastname = contact_info.lastName(); QList
phoneno_list = contact_info.phoneNumbers(); QStringList no_s; foreach(ContactAttribute attr, phoneno_list) { no_s << attr.value(); } } You can get details like this.
Kind regards
Naresh Kodumuri.
-
How to get the name and number of the procedure parameter list or a function?
I stated the procedure described in the package
If I want to get the number and the name of the parameter list, so how do I it
I don't have I her name with the package.
create or replace package demoApp is
PROCEDURE insert_data (p_fname IN VARCHAR2,
p_lname IN VARCHAR2,
p_address IN VARCHAR2,
p_cellno IN VARCHAR2,
p_email IN varchar2);
end demoApp;
create or replace package demoApp body is
PROCEDURE insert_data (p_fname IN VARCHAR2,
p_lname IN VARCHAR2,
p_address IN VARCHAR2,
p_cellno IN VARCHAR2,
p_email IN varchar2) IS
EmpID number;
BEGIN
Select nvl (max (emp1.empid), 0) + 1 in EMP1 empid;
INSERT INTO VALUES EMP1 (empid, p_fname, p_lname, p_address, p_cellno, p_email);
EXCEPTION
WHILE OTHERS THEN
raise_application_error (-20001,' insert the problem ' |) SQLERRM);
END;
end demoApp;
-----------------
I want to get the name of the parameter and the number of use of stroredrprocedure ""demoApp.insert_data " "
Select *.
of all_arguments
where package_name = 'DEMOAPP.
and object_name = 'INSERT_DATA.
-
How to get the LOGO and company name in the theme of the 4 apex
Hello
I use the theme 4 for apex 4.0.2.
I must have the logo as well as the name of the company the two, but when I select den Image it shows only the image in the dashboard and when I select den text it shows the name of the company.
How to get the two logo and the name of the company?
Thanks for your help.
Kind regards
Sébastien Pallav.Pushpesh Pallav says:
HelloI use the theme 4 for apex 4.0.2.
I must have the logo as well as the name of the company the two, but when I select den Image it shows only the image in the dashboard and when I select den text it shows the name of the company.The word is spelled 'then', not 'den '.
How to get the two logo and the name of the company?
Select the text, and include HTML, making reference to the image in the text:
Company NameThe image src URI used depends on the location of the image, which you have failed to specify.
-
How to get the public and private keys to use recaptcha?
I registered with google to get a recaptcha for my Web site. I've gotten has been the key to site and the secret key! If I need to get the public and private key for muse!
Hello
Please use the site as a 'public key'key key and Secret as "clΘ privΘe".
Concerning
Vivek
-
How to get the speed and the influence of the keyframe?
Hello world
I'm sorry if my question is due lack of understanding of script in AE but I can't seem to get the speed and influence the properties of selected or closest to the keyframe, I found that the ways to implement.
Can someone tell me please in the right direction?
Thank you!
property.keyInTemporalEase (key) and property.keyOutTemporalEase (key) will give you the objects made easy with speed and influence the attributes for a particular key.
Dan
-
I want to add a long list of hours and minutes in numbers.
The list will come to 1000 + hours and I want that it displays the actual number of hours and minutes, not expressed in days.
Impossible to find a way to format the cells to allow me to th
Did you try & see if a few suggestions here may work?
• Create a custom cell format - Numbers Help for Mac:
http://help.Apple.com/numbers/Mac/3.2/#/tan090042718
The database can provide also other useful elements, if ticked off more.
Good luck & happy computing!
-
How to get the Organizer"and"Accepted"data from a BlackBerryEvent
Hi all
-J' I send an invitation to the device of BB from Outlook
-Once received, accept the appt to the BB email applicationWhen I view the appointment in the native calendar of BB, I can see the "Organizer" fields and "accepted."
How can we get these data "Organizer" and "Accepted" to a BlackBerryEvent we will get only the PARTICIPANTSin an event.
Using String email is event.getString(BlackBerryEvent.ATTENDEES,i);.
any help in this please.
Thank you
Gerard
No, you can get a list of the names of the participants, but not their status.
Maybe you are looking for
-
My keyboard loses functionality when I try to leave comments on Facebook. Delete, BACKSPACE, apostrophe and cut, copy and paste are disabled. This only happens in the comments, no functionality is lost in the mail or status updates. I disabled all my
-
Whenever I have try and open my request for a photo, I get an error missing location information to work. Any help? Please, I beg you!
-
just buy a cheap printer so I can print from my phone.and it's a hp deskjet 2540, but whenever I try to connect to it his request a password. I don't own a computer, so I can't install CD .can someone help me?
-
don't touch &; pay menu setting
I checked the other z3c and they tap & pay in the framework. How can I get that option?
-
Hello My laptop Toshiba Satellite L670-BT2N25, running Windows 7 message "System error" on a cooling problem, advising the immediate closure and return for service. It seems to come on 10 to 20 minutes after coming out of hibernation or restart. Sec