How to get the Date format for a specific date?
May be it is inept to ask, but I'm aware of the Date.which appear on client - it's just that the average customer treats the date.
Right?
So what happens if a need to check the format to set the server to date.
Or need to write common code indicating the date format
on the server, it is running.
This requirement came into my mind while using the extract method.
Actually, I wanted to date of manipulation of the side back end.
Let's say the time is 04:12:2012 03:05:16.
Now, if I add 100 minutes, the result will be.
04:12:2012 04:45:16.
It's the requirement. Maybe there may be best way to do
but it's the way I think now.
Thank you.
It's something that you don't need to know:
you have a string containing a date or timestamp, and then he must know the format of this string and not the fornat date used by the server.
or you have a date or timestamp, and then you can add minutes to it without knowing the format as described before.
Tags: Database
Similar Questions
-
How to get the date for the first Monday of each month
Dear members,
How to get the date for the first Monday of each month.
I wrote the following code
SELECT decode (to_char (trunc (sysdate + 30, 'MM'), 'DAY'), 'MONDAY', trunc (sysdate + 30, 'MM'), NEXT_DAY (trunc (sysdate + 30, 'MM'), "LUN")) FROM DUAL
But he looks at complex bith.
Abhishek
Published by: 9999999 on 8 March 2013 04:30Use the IW format - it will make independent NLS solution. And all you need is truncated 7th day of each month using IW:
select sysdate current_date, trunc(trunc(sysdate,'mm') + 6,'iw') first_monday_the_month from dual / CURRENT_D FIRST_MON --------- --------- 08-MAR-13 04-MAR-13 SQL>
Here is the list of the first Monday of the month of this year:
with t as( select add_months(date '2013-1-1',level-1) dt from dual connect by level <= 12 ) select dt first_of_the_month, trunc(dt + 6,'iw') first_monday_the_month from t / FIRST_OF_ FIRST_MON --------- --------- 01-JAN-13 07-JAN-13 01-FEB-13 04-FEB-13 01-MAR-13 04-MAR-13 01-APR-13 01-APR-13 01-MAY-13 06-MAY-13 01-JUN-13 03-JUN-13 01-JUL-13 01-JUL-13 01-AUG-13 05-AUG-13 01-SEP-13 02-SEP-13 01-OCT-13 07-OCT-13 01-NOV-13 04-NOV-13 FIRST_OF_ FIRST_MON --------- --------- 01-DEC-13 02-DEC-13 12 rows selected. SQL>
SY.
-
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")
-
How to get the code produced for my Windows XP disc if I have the drive?
Acquisition of Product Code Windows XP
How to get the code produced for my Windows XP disc if I have the drive? I signed the BONE when I bought it all first, but have no way of knowing if this is the way to receive a copy of the product key.Here are some utilities, which will display your product keys:
Belarc Advisor: http://www.belarc.com/free_download.html
(He did a good job of providing a wealth of information.
However may not detect a key to office, then try one of the other two below)Also: http://www.nirsoft.net/utils/product_cd_key_viewer.html
and: http://www.magicaljellybean.com/keyfinder.shtmlPaid (free demo is available): Recover Keys: http://recover-keys.com/
"quickly scans your system for more than 3000 + software '.
and produces a list of software activation keys.13 keyfinder programs:
http://pcsupport.about.com/od/productkeysactivation/TP/topkeyfinder.htmJ W Stuart: http://www.pagestart.com
-
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 device model, for example app works on PlayBoook or BlackBerry 10?
How to get the device model, for example app works on PlayBoook or BlackBerry 10?
You can use this class: http://goo.gl/GtMLP for information on devices
something like this:
String myDeviceModel = android.os.Build.MODEL; String myDeviceBrand = android.os.Build.BRAND; String myDeviceDevice = android.os.Build.DEVICE;
-
How to get the text formatting in the tables
Dear experts and aid
For my project, I import an RTF file and then read the data into 3 tables. It works fine when just using the contents of the string of paragraphs. However, the final script should be able to read and to replace the text formatted...
Why use intermediate tables? Because otherwise I need to swap between two fm-documents (and you can be a part of the book).The imported file starts with a certain number of lines separated into two parts by a TAB ("designates a TAB in \x08 FM)
[[Garneau, 1990 #12]] » [9]
The good article can also be locally as text, e.g. [9]
Then follow the same (or smaller) number of paragraphs with text formatted like this:
[9]"D. Garneau, ed., National Language Support Reference Manual (national language Information Design Guide. Toronto, CDN: IBM National Language technical Centre, 1990.Is it possible to replace in the body of the function below the next song
while(pgf.ObjectValid()) { pgfText = GetText (pgf, newDoc); gaBibliography.push(pgfText); pgf = pgf.NextPgfInFlow; }
with this
while(pgf.ObjectValid()) { gaBibliography.push(pgf); pgf = pgf.NextPgfInFlow; }
Do I need a special statement of the gaBibliography range?
And how to get the right part of the lines as formatted intro thingy in table gaFmtCitsFmt ?Currently, I read in the tables as "strings" (function GetText not shown):
var gaFmtCitsRaw = []; // left column in processed RTF var gaFmtCitsFmt = []; // right column in processed RTF var gaBibliography= []; // bibliography lines from processed RTF // filename is something like E:\_DDDprojects\FM+EN-escript\FM-testfiles\BibFM-collected-IEEE.rtf function ReadFileRTF (fileName) { var nCits=0, nBib = 0, openParams, openReturnParams, newDoc, pgf, pgfText ; var TAB = String.fromCharCode(8); // FM has wrong ASCI for TAB var parts = []; openParams = GetOpenDefaultParams(); openReturnParams = new PropVals(); newDoc = Open (fileName, openParams, openReturnParams); pgf = newDoc.MainFlowInDoc.FirstTextFrameInFlow.FirstPgf; // get first pgf in flow // --- read the temp/formatted citations while(pgf.ObjectValid()) { pgfText = GetText (pgf, newDoc); if (pgfText.substring (0,2) == "[[") { // citation lines start with [[ parts = pgfText.split(TAB); // get the two parts of the line gaFmtCitsRaw.push (parts[0]); // Push the result onto the global array gaFmtCitsFmt.push (parts[1]); pgf = pgf.NextPgfInFlow; } else { break } } // --- read the bibliography while(pgf.ObjectValid()) { // until end of doc pgfText = GetText (pgf, newDoc); gaBibliography.push(pgfText); pgf = pgf.NextPgfInFlow; } newDoc.Close (Constants.FF_CLOSE_MODIFIED); } // --- end ReadFileRTF
The following questions will then be how to change the script of FindAndReplace of Ian Proudfoot for managing text formatted as replacement. I will need to use the copy and paste IMHO...
Klaus, okay, before pasting, you must assign the TextSelection object at your insertion point.
// Add a new paragraph after the current paragraph. var newPgf = oDoc.NewSeriesPgf (lastPgf); var textRange = new TextRange (new TextLoc (newPgf, 0), new TextLoc (newPgf, 0)); oDoc.TextSelection = textRange; oDoc.Paste ();
-Rick
-
How to get the data center moref moref VM in c# using
Hi all
Could someone tell how to get managedobjectreference of data center using the VM moref? or any other easy way is? If anyone has examples of code in c# please share with me?
Thank you
Vijaya
You can get the data center in which the virtual machine resides by the following search:
VM Moref-> Parent (vmFolder)
Moref folder VM-> Parent (data center)
Parent of the virtual computer object will always be the vmFolder and the vmFolder object will always be a data center.
For more details on the model of article inventory of vSphere, take a look at this blog post - http://www.doublecloud.org/2010/03/vsphere-inventory-structure-deep-dive/
-
How to get the date of end of week max and its rows of a table
Hello
This table how to get this line by id - name (id and the name of the composite key) whose date is the date of last weekend (last Saturday).Table [temp2] id name dt 123 a 2-mar-2010 124 b 1-feb-2010 125 c 3-apr-2010 123 a 13-mar-2010 125 c 13-mar-2010 123 a 12-feb-2010
for example, suppose to have IDs 123 values date February 12, 2010, 13-mar-2010 this date falls on the last Saturday 13-mar-2010, how to get the value of the line on Saturday last for all the unique id and the name?
So I wrote this but probably there a few traps...
Here I have spent in the in clause 4 last weekend dates manually (although either has been calculated by programming) in front.select id,name,dt from (select id,name,dt,max(dt) over(partition by id,name) as max_date from temp2) t where dt=t.max_date and dt in ('3-apr-2010' ,'27-mar-2010','20-mar-2010','13-mar-2010')
Thank youHere's another option:
SELECT * FROM ( SELECT ID , NAME , MAX(CASE WHEN TO_CHAR(DT,'DY','NLS_DATE_LANGUAGE=ENGLISH') = 'SAT' THEN DT END) AS DT FROM TEMP2 GROUP BY ID, NAME ) WHERE DT IS NOT NULL
It is always useful to provide the following information:
1. oracle version (SELECT * FROM V$ VERSION)
2. examples of data in the form to CREATE / INSERT commands.
3. expected results
4 explanation of the expected results (alias "business logic")
5. use.tags for #2 and #3. See FAQ (Link on top right side) for details.
-
Satellite L500-154 - how to get the software packaged for Win7
How can I get the software "Bundled" for Win 7, I will install Win 7 full (no updates), in the moment is runing Vista on the laptop
As far as I know, you can't have Win7 recovery media. Laptops ship with Vista can update only.
-
How to get the new update for the help and support
OT:how to get the new update of the abd support help
How to get help and support update
Hello rickstemberger,
Please click the number of the KB article for more information on how to add Windows Vista Help files.
KB Article ID: 917607 -I can not open Help files that require the Windows Help program (WinHlp32.exe)Microsoft stopped including the 32-bit help files viewer in versions of Windows starting with Windows Vista and Windows Server 2008.
However, with article 917607, you can download the appropriate version of the Windows Help program (WinHlp32.exe) and add them
the operating system.Sincerely,
Marilyn
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think -
How to get the dates of discontinuity
If there is discontinuity in dates how we write the query...
I need to get the dates and the dates of discontinuity.
I / p:
item_no first_date second_date
1 January 1, 10 Aug 1, 10
1-01 - 7.-10 1er January 11
1 February 1, 11 1 July 11
"
"
"
o/p:
1 1 January 10 01 - aug - 10
1 02-aug-10 (first_date + 1) 31-aug-10(second_date-1) - dates of discontinuity
1-01 - sep - 10 (second_date) 1st January 11
1 January 2, 11 January 31, 11
1 February 1, 11 1 July 11
'
'
'
Please let me know is possibleSQL> select * 2 from tbl 3 / ID FIRST_DAT SECOND_DA ---------- --------- --------- 1 01-JAN-10 01-AUG-10 1 01-SEP-10 01-JAN-11 1 01-FEB-11 01-JUL-11 SQL> with t1 as ( 2 select tbl.*, 3 lag(second_date) over(partition by id order by first_date) prev_second_date 4 from tbl 5 ), 6 t2 as ( 7 select * 8 from tbl 9 union all 10 select id, 11 prev_second_date + 1, 12 first_date - 1 13 from t1 14 where prev_second_date + 1 < first_date 15 ) 16 select * 17 from t2 18 order by id, 19 first_date 20 / ID FIRST_DAT SECOND_DA ---------- --------- --------- 1 01-JAN-10 01-AUG-10 1 02-AUG-10 31-AUG-10 1 01-SEP-10 01-JAN-11 1 02-JAN-11 31-JAN-11 1 01-FEB-11 01-JUL-11 SQL>
SY.
-
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. -
How to get the latest fix for CPU
Hi gurus,
Hello.
How to get the latest information from CPU fix for our system EBS 11i, how to get alerts whenever they have released patches of CPU.Hi DBA.
Please check this, hope this helps.
See the metaink notes:
Releases of Oracle E-Business Suite 11i and 12 Critical Patch Update knowledge Document (October 2010) [ID 987438.1]
Information OCT - 2010 CPU patches:
http://www.Oracle.com/technetwork/topics/security/cpuoct2010-175626.html
on the paths of the CPU:
http://www.Oracle.com/technetwork/topics/security/alerts-086861.html
For the email subscription:
http://www.Oracle.com/technetwork/topics/security/securityemail-090378.html
Published by: Amigo on December 22, 2010 07:26
Published by: Amigo on December 22, 2010 07:29
-
How to get the date in the exact day in the field when another?
Hello
Please help me how to get the day of the week using another date field.
In fact, a field (week_day) has 1,2,3,4,5,6,7 here 1-, 2 - KILL like this.
another field has the date. After this date, go to this particular week and need to pick up the date of the Etiquettemois above. It should be this week there himself.
Thanks in advance!
Kind regards
Florian...
Published by: Florian on October 29, 2010 03:07Maybe it's
select trunc(date_field,'D') + week_field - 1 from table
-
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.
Maybe you are looking for
-
Pavilion 22fi: HP Pavilion 22fi darker on half left
Good day everyone! I got my 22fi like three years ago. His first a year and a half, the Middle below got darker as he had a circular spot. I let him rest for a few weeks, but he has always had the problem so I ignored it because I sorely need to moni
-
Qosmio G25: Qosmioplayer TV button function change
I have a Qosmio G25, but instead of switching to the analog tuner Qosmioplayer key I want to turn on my hdtv usb device. Is this possible?Any help is appreciated.Thank you
-
My X 60 a double boot Windows XP and Linux Mint 15. I need high grade at 17 Linux Mint. (and debris at the time wanted the Win XP partition as I no longer user there) But when I try to boot from a CD or a USB drive the .iso image file does not launch
-
Windows XP SP3 problem Recently, I met a problem with my PC and was forced to use the system recovery. Now I'm back to factory settings and try to install Windows XP Service Pack 3 on my computer. Windows Update won't work for me, that whenever I try
-
How to fix dll from a reliable site problems
Start the computer to act up with the installation of itunes... received corefoundation.dll error... uninstalled... reinstalled itunes and quicktime... now receiving icuin36.dll error rather... want to fix... but cannot find a way without paying... a