Converting problem OracleDate to DateTime
I defined[b] vrhibtar property as OracleDate in my class.I want use it in a Windows Form Application.Bu t if a write
sek.vrhibtar=Convert.ToDateTime(textbox1.text) it cant convert ..to OracleDate to System.DateTime.
Could someone help me?
Thanks in advance...
Message was edited by:
sek.NET
Not sure if you want to convert from OracleDate to DateTime. For that you may use OracleDate's Value property. Moreover, OracleDate provide constructors for both DateTime and String.
Similar Messages
-
How to convert epoch time to datetime in sql*loader Oracle
Hello,
I wan't to question how to convert epoch time to datetime in sql*loader Oracle. I try this script for convert epoch time to datetime in sql*loader, but error:
Record 1: Rejected - Error on table TEMP_TEST_LANGY, column DATADATA.
ORA-01722: invalid number
Record 2: Rejected - Error on table TEMP_TEST_LANGY, column DATADATA.
ORA-01722: invalid number
Record 3: Rejected - Error on table TEMP_TEST_LANGY, column DATADATA.
ORA-01722: invalid number
This is my loader:
LOAD DATA INFILE 'C:\Documents and Settings\Administrator\My Documents\XL_EXTRACT_211\load.csv'
into table TEMP_TEST_LANGY append
FIELDS TERMINATED BY ','
TRAILING NULLCOLS
DATADATA CHAR "TO_DATE('01-JAN-1970','DD-MON-YYYY')+:datadata/86400"
This is my csv file:
79314313.7066667
79314336.2933333
79314214.3466667
This is my table:
CREATE TABLE TEMP_TEST_LANGY
DATADATA DATE
Thanks
Edited by: xoops on Sep 21, 2011 8:56 AM
Edited by: xoops on Sep 21, 2011 8:58 AMthanks for your answer, but I asked to use sql loader instead of the external table, which so my question is why can not the epochtime converted to datetime, if there is no way to convert a datetime epochtime using sql loader, so I'm required to use the external table. thank you.
This is my error log:
Column Name Position Len Term Encl Datatype
DATADATA FIRST * , CHARACTER
SQL string for column : "TO_DATE('1-Jan-1970 00:00:00','dd-MM-YYYY hh24:mi:ss') + (:DATADATA/60/60/24)"
Record 1: Rejected - Error on table TEMP_TEST_LANGY, column DATADATA.
ORA-01722: invalid number
Record 2: Rejected - Error on table TEMP_TEST_LANGY, column DATADATA.
ORA-01722: invalid number
Record 3: Rejected - Error on table TEMP_TEST_LANGY, column DATADATA.
ORA-01722: invalid number
Edited by: xoops on Sep 21, 2011 12:33 PM -
Convert Problems/Solutions into Knowledge Articles
Hi Experts,
I am wroking on SAP CRM 7.0 SP06 and now we are planning to implement Knowledge Article functionality.
I have done the all configuration settings and multilevel categorization, every thing working fine. Now I want to convert problems/solutions which already created in CRM and stored in SDB into knowledge article.
Any one please guide me how can I convert existing problems/solutions into knowledge articles. Is there any report for this?
Thanking you in anticipation.
Regards,
Babu.Hi Kevin,
Well, I'm new on this and have only worked on CRM 6 & 7. I'll give you my advice regarding these CRM versions. I don't know if it is supported on CRM 5.
IMG:
CRM >> Enterprise Intelligence >> SAF >> Name and Configure KB
You create and define you DB as you want: ACME INC
CRM >> Enterprise Intelligence >> SAF >> Business Add-Ins >> BAdI: Knowledge Base
Each knowledge base should have its own Add-In implementation. So you have to implement an Add-In based on Add-In definition CRM_SAF_KB_*: CRM_SAF_KB_ACME. You can follow IMG documentation.
In my case, the add-in already existed, since Knowledge Article functionality is standard in 7.0. KB didn't exist, I don't know why. I just created it with the name assigned on the BAdI, compiled, and everything works fine now.
Hope it helps.
Regards.
Pablo -
Canon Powershot S120 Adobe Lightroom RAW converter problem
Have a MacBook running Yosemite. I am an underwater photographer so rely on using White Balance to get colour into my photos. Since upgrading Lightroom from 5.3 or 5.6 to 5.7 all my Canon S120 RAW files change colour after import and become a wishy washy green. As one moves along the filmstrip, the Histogram shows calculating and all the photos lose their colour, as if the White Balance is being removed. My previous catalogue, same camera, Lightroom 5.3 or 5.6 photos import as they look on the camera. Have discussed with Canon and they think an Adobe Codec RAW converter problem. Do you have additional Codecs for Canon S120? Canon happy to discuss problem. Their reference: 1-3374995525. Please help.
If you look at the Tint slider with As Shot WB set, you’ll see it is maxed out at 150 for all three of your sample images.
I think this means that LR’s DNG Profiles don’t have the range to entirely neutralize the WB so your images are left with the wrong WB and no way to fix it.
Adobe profiles don’t do a good job in extreme lighting situations, especially with an overabundance of blue light which underwater pictures typically have.
You can mess with the Calibration sliders a bit and get some of the colors to be more like the camera-JPGs have, but some colors will still be different.
If you have an X-Rite color-checker, that you could photograph without getting it wet, then you could make a custom camera calibration profile for that specific lighting scenario and maybe it’d work, but maybe the profiles still can’t extend beyond a certain point. I am also not sure how you’d keep the color-checker dry underwater. -
Hi,
Is there a way to convert
23APR15
to a datetime? I got one exception to such codes
dt1 = DateTime.ParseExact(curr_dt, "DDMMMYY", null);
worksheet.Cells[rw, 1] = dt1.ToString("mm/dd/yyyy");
Many Thanks & Best Regards, Hua MinHi HuaMin,
Do you mean this error? Here is my screenshot on my side when reproduce your code,
There is no "DDMMMYY" format in DateTime. You can refer to
Standard Date and Time Format Strings for more detailed information.
The following code make sense.
DateTime.Now.ToString("yyyyMMddHHmmss"); // case sensitive
In addition, here is a pattern for en-us culture.
Specifier
DateTimeFormatInfo property
Pattern value (for en-US culture)
t
ShortTimePattern
h:mm tt
d
ShortDatePattern
M/d/yyyy
T
LongTimePattern
h:mm:ss tt
D
LongDatePattern
dddd, MMMM dd, yyyy
f
(combination of D and t)
dddd, MMMM dd, yyyy h:mm tt
F
FullDateTimePattern
dddd, MMMM dd, yyyy h:mm:ss tt
g
(combination of d and t)
M/d/yyyy h:mm tt
G
(combination of d and T)
M/d/yyyy h:mm:ss tt
m, M
MonthDayPattern
MMMM dd
y, Y
YearMonthPattern
MMMM, yyyy
r, R
RFC1123Pattern
ddd, dd MMM yyyy HH':'mm':'ss 'GMT' (*)
s
SortableDateTimePattern
yyyy'-'MM'-'dd'T'HH':'mm':'ss (*)
u
UniversalSortableDateTimePattern
yyyy'-'MM'-'dd HH':'mm':'ss'Z' (*)
(*) = culture independent
Best regards,
Kristin
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
EZ Vinyl Converter problem transferring to iTunes - window appears "mixmeister programme has stopped working and will shut down". Then the data is lost, and I have to try to record/transfer again. I have now tried many times.
The deck is ION TTUSB05XL Laptop Asus V550C with Windows 8.
Strangely I did manage to successfully transfer two tracks to iTunes, but all further attempts have failed.
JJREZ Vinyl Converter problem transferring to iTunes - window appears "mixmeister programme has stopped working and will shut down". Then the data is lost, and I have to try to record/transfer again. I have now tried many times.
The deck is ION TTUSB05XL Laptop Asus V550C with Windows 8.
Strangely I did manage to successfully transfer two tracks to iTunes, but all further attempts have failed.
JJR -
Javascript - custom datetime converter problem
Hi all,
JDev version 11.1.2.4
After migration from JDev 11.1.2.1 to new JDev 11.1.2.4 my custom datetime converter stop working.
After debuging I found out that client javascript converter is problem.
Here is javascript code:
function DateToCalendarConverter(pattern, locale, exampleString, type) {
this._class = "rmypackage.view.convert.DateToCalendarConverter";
this._separator = '';
this._pattern = pattern;
this._locale = locale;
this._exampleString = exampleString;
this._type = type;
this.old_getAsObject = TrDateTimeConverter.prototype.getAsObject;// TrDateTimeConverter is not defined
DateToCalendarConverter.prototype = new TrDateTimeConverter();
DateToCalendarConverter.prototype.getAsObject = function (stringValue, label) {
//some transformation
return this.old_getAsObject(stringValue, label);
Line that breaks javascript is " this.old_getAsObject = TrDateTimeConverter.prototype.getAsObject; " and message is TrDateTimeConverter is not defined.
This works fine in JDev 11.1.2.1.
Does anyone know what is the problem and is there any workaround?
Thanks in advanceFrank, this is not trinidad issue. Which JavaScript libraries ADF loads is definitely changed.
In JDev version 11.1.2.1 there was Common2_0_0_beta_2.js file, and in JDev version 11.1.2.4 it doesn't exist.
Unfortunately that file contained TrDateTimeConverter and that is why it doesnt work.
So, is there a way I can force adf to load javascript library that contain TrDateTimeConverter?
Oracle?
Thanks in advance. -
hi all,
I have a prob with datetime converter
<h:inputText id="toTime" value="#{shiftMBean.shift.toTime}" styleClass="GeneralTxt" maxlength="15" >
<f:convertDateTime type="time" pattern="H:mm" timeStyle="short" />
</h:inputText>
i m gettin error when i enter time as 1:30 or 21:30 or 01:30 can any one pls help me with this??
toTime is of type time in databaseYour bean must have a getShift() method that return an object that have a getToTime() method that return a Date object... is your bean right?
-
How to convert Epoch time to Datetime (YYYYMMDDHH24MMSS)
Hi,
In our Oracle db, Datetime is stored as Epoch time (seconds since january 1st 1970). To get a readable date, I have converted those fields as followed:
TO_CHAR(TO_DATE('19700101000000', 'YYYYMMDDHH24MISS')+((DATE_FIELDS-18000) /(60*60*24)),'YYYYMMDDHH24MISS')
Result ex: 20100830135422
The problem is that the resulting fields are in VARCHAR2 instead of DATE so it causes issues in SAP BW reporting development. BW developpers can manage something to make it eventually work but I would like to correct this at the source if it is possible.
I have already tried to add another "TO_DATE" function at the beginning of the previous expression but I get a date in "DD-MMM-YY" format as a result even if I have forced another date format.
Any idea on how I could solve this?
Thanks a lot
PascaleOk, there is clearly a disconnect here.
Oracle stores dates in a DATE datatype. This means that, internally, it will store enough information for a 4 digit year, a month, date, hour in 24 hour time, minute, and second. All that information is stored in the DATE datatype inside the database, but, it's stored in an internal format, that has nothing to do with what it will look like when you print it. When you want to retrieve it, Oracle must have a date format string, so that it knows how to display that information. If you do not provide a date format string via the TO_CHAR() function, Oracle has a parameter called NLS_DATE_FORMAT that provides the default format to use. If you have not set the NLS_DATE_FORMAT, it defaults to DD-MON-YY.
So, having said all that, what are you actually trying to do?
You started with this expression:
TO_CHAR(TO_DATE('19700101000000', 'YYYYMMDDHH24MISS')+((DATE_FIELDS-18000) /(60*60*24)),'YYYYMMDDHH24MISS')How is that expression used? In a SELECT statement? Then you probably want it the way it's written above. In an INSERT statement? If so, then if the datatype of the column you're inserting into is DATE, then you probably need to eliminate that outer TO_CHAR conversion, so that the expression returns a date that can be inserted into DATE column.
Tell us more about what you want to do, and perhaps we can offer further help.
-Mark -
Sql Timestamp converter problem in Tomcat
Hi all,
I have a table that one of the columns is an Oracle date type. So, I use SQL Timestamp converter in static text that is bound to the column. Here I want to display only the time part of the field, so in the converter properties I changed the pattern to HH:mm (for 24 hours format), and the type property I changed to time only.
Everything is perfect in development using sun app server. Problem is when I deploy that to Tomcat, the column displays 00:00 regardless of the real value. Tried to change the property of the converter, but has no effect.
The differences between sun app and tomcat besides the application server is the jdbc driver. The Tomcat uses Oracle JDBC driver.
Could someone give me some solution about that?
Thanks in advance.You should try changing java.sql.Timestamp to java.util.Calendar.
java.util.Calendar maps to the dateTime type in XML Schema, and TIMESTAMP as a JDBC type.
Regards,
Mike Wooten -
Hi,
Thanks to the DIS, I'm able to check-in e-mail in my Content Server;
As for Word, Excel and Powerpoint files, I would like to convert this incoming e-mail in PDF.
As indicated in the PDF COnvertor documentation, it is possible to convert e-mail messages into PDF.
To realize it, I defined a new file format in the Configuration Manager of the CS.
The name is "application/outsidein". I chose "OutsideIn Technology" as "Conversion".
In the file extension, I added "msg" and I mapped to the newly created format.
Thanks to that, the email message is converted in PDF. Fine !
The problem is the result of the conversion. It is just awful. The parts indicating the sender, the subject, ... is displayed in several pages.
My email server is Microsoft Outlook 2007.
Does anyone know how to improve the quality of the PDF conversion ?
Thanks in advance
Pierrethe arabic font may not be supported by adobe with the version of adobe that you are using,
Try another application that allows you to export to Adobe and see if the same issue occurs.
You may need to get a full blown version of Adobe rather that just you the adobe provided by Crystal. -
Convert string to mysql datetime in java
Hi,
Can somebody suggest me how to convert a date string in this format - Mon Aug 10 16:36:00 CDT 2009 to a MySql DateTime in Java?
This date is the result of Apache POI. Below is my code:
if(HSSFDateUtil.isCellDateFormatted(hssfCell)) {
cellData = HSSFDateUtil.getJavaDate(hssfCell.getNumericCellValue()).toString();
break;
I want to insert cellData into MySql DateTime field.
Thanks.First I would use a SimpleDateFormat object to parse that into a java.util.Date object.
Then I would create a java.sql.Timestamp object from that and insert it into a PreparedStatement which updates the appropriate column in your MySQL table. Note that using a PreparedStatement removes all the uncertainty of creating something in a "MySQL" format as it just tells the JDBC driver to deal with those details. -
Mapping problem with xs:dateTime
Hi there,
I am trying to set up a demo project for training purposes illustrating the implementation of composite services using third party and ECC services. For the third party portion of it, I am using the Fedex web services.
After importing the remote services, I defined my custom complex datatypes for the application services and mapped the lean app service interface to the broad remote service interface. The missing mandatory data fields of the remote service I stored as fixed values within the mapping itself. so far so good.
The problem appeared with a time stamp field (xs:dateTime). When storing a value like "2009-08-19T22:00:00+0100", the resulting code in the constants file (<ServiceName>_<OperationName>_In_Constant.java) looks like this:
javax.xml.datatype.XMLGregorianCalendar ShipTimestamp = RequestedShipment.getShipTimestamp();
if ( ShipTimestamp == null ){
ShipTimestamp = "2009-08-19T22:00:00+0100";
RequestedShipment.setShipTimestamp(ShipTimestamp);
Obviously, this got to fail as there is a type mismatch (String vs. XMLGregorianCalendar).
After this, I tried to use the proper java expression as the default value in the mapping
........javax.xml.datatype.DatatypeFactory.newInstance().newXMLGregorianCalendar("2009-08-19T22:00:00+0100")
As expected, the expression is copied into the code 1:1, but after that, the compiler complains that there is an unhandled exception (DatatypeConfigurationException).
One solution would obviously be to put the timestamp into the signature of my application service operation, but I would consider this an unnecessary workaround.
any ideas ?
NickI actually did find the solution although a very messy one. If I use the following snippet as the default value
........com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl.parse("2009-08-19T22:00:00+0100")
the generated code compiles without error. Nevertheless, not very nice. hope there is an alternative way of doing that.
Nick -
Process order convertion problem
Hi All
When I am converting the Planned Order to Process Order I am getting a error message Not able to determine the consumption account.
Can anybody tell me how this problem can be solved.
Is there anything I have to do in customizing
Rregards
DhananjayHi Dhananjay,
check your material is been assigned to valution class in accounting view in MM02
if it is assigned then check GL account is given properly to that valution class.
take help of MM and FI consultant
Thanks
Bala
IF useful reward -
Zen Vision M video convertion problem: image upside d
Tried to copy .avi videos to my ZVM, but after the required convertion?(via Creative converter to .wmv format) the video appeared upside down. Tried several times with different files -- same result. Any idea?
trm989 wrote:
I'm not sure what exactly is the problem with the video, but whenever I upload it, it will only play up 00:08 of 24:0. For some reason, it fails to recognize the other parts of the video, and only shows the video length as 8 seconds. The video works fine when played in Windows Media.
The size of the video is 70 MB, and the data rate is 966 kbs.
I would say maybe the data rate is the problem . I use this program to encode my videos & it has a preset for the Zen that also works well on the Zen VM. http://forums.creative.com/showthread.php?t=527380BTW just because a video plays on the computer does not mean it will play on your device.
Maybe you are looking for
-
No Audio Plybck via 1394 Prem Elem 7
I have a DV5000 bidirectional converter taking in composite video and analog audio and outputting 1394 into the computer. Prem Elem 7 captures fine, edits fine and creates mpgs and movs fine. I need the ability to playback directly from the editing
-
How do I get the opacity slider to appear in iPhoto?
How do I get the opacity slider to appear in iPhoto on a page in book?
-
Hi, I have a problem with my iphone 5 battery. After i upgrade to iOS 7, now when my battery is about 20% and when i charge it, its not going up but still drained instead. Anyone has a same problem?
-
EPMA web service help needed (9.3.1.5)
I'm having issues when trying to utilize the backend EPMA web services. What I'm attempting to do is write a java app that can hit the EPMA services to authenticate, upload a flat file, then run a flat file import using a rule on the server. I'm curr
-
ORA-01291:missing logfile when FlashingBack a Primary DB in logical standby
OS: Solaris 10 and Windows vista Oracle version : 10.2.0.4.0 Enterprise Edition and 10.2.0.3.0 Enterprise Edition We are getting ORA-01291: missing logfile when FlashingBack a failed Primary DB into logical standby We are following Below procedure fo