Convert an integer value that was created with the Excel DATEVALUE formula to a valid date?

Hello everyone,
How can I convert an integer value that was created with the Excel DATEVALUE formula to a valid date in SSIS?
Is this even possible?
For example:
=DATEVALUE("8/22/2008") will format the cell to display 39682.
Reading the column as a string to get the int value (39682) - how can I turn this into a valid date using SSIS and then importing the real date to sql server?
Thank you!

You can use Script component for this and convert your integer values to Date. An example here is following:
CultureInfo provider = CultureInfo.InvariantCulture;
string dateString = "08082010";
string format = "MMddyyyy";
DateTime result = DateTime.ParseExact(dateString, format, provider);
Source: http://stackoverflow.com/questions/2441405/converting-8-digit-number-to-datetime-type
Vikash Kumar Singh || www.singhvikash.in

Similar Messages

  • Is there anything that you can do to fix a pdf that was created with the wrong orientation?

    Someone sent me 40-page pdf created from a document with landscape orientation that was output with portrait orientation. The pages are clipped off on the right and left. There is no way that I can see that you can change the orientation in Acrobat Pro and if it is converted into a Word document you can see most of the text, but there is still some missing, especially where there are tables. I don't have access to the original document. I was just curious if there was a way around this?

    Thanks, that is what I figured. Just thought I would ask. Some of the text that was clipped off did appear when the pdf was converted into a word file, but not all of it.
    Mary Jane

  • Does adobe muse support flash that was created with lightroom

    does adobe muse support flash that was created with lightroom

    I suspect your PhoneGap app was flagged as running on both iPad and iPhone. You'll need the same from DPS. You can do this in AppBuilder at the start of the wizard where it asks what kind of devices you want to support. Note that this is only available to DPS Professional and Enterprise customers. If you are a Creative Cloud customer building a Single Edition application it will only support iPad.
    Neil

  • HT2513 my iCal calendar that I created with the color green keeps changing to purple.  no matter how many times I change it to green, it turns it back to purple.  Of course this only happens with iCloud and not "from my Mac".  Any ideas?

    my iCal calendar that I created with the color green keeps changing to purple.  no matter how many times I change it to green, it turns it back to purple.  Of course this only happens with iCloud and not "from my Mac".  Any ideas on how to correct this?  This seems like a trivial error, but it's super annoying.

    I called Apple and they said that they know about this problem.  It's a problem with iCloud which their Engineers know about.  (there was a new iCloud release, hence...)  No ETA for a fix yet.  I asked that this be escalated so Engineering doesn't put it at the bottom of their fix list.  I talked to a Senior Advisor and mentioned to them to have QA check their regression tests as this has happened before to me (the problem just didn't take this long to resolve).  I like to use green too for important stuff, so I've resorted to creating a new calendar using the normal calendar green for events going forward.  They could have picked another color besides green to have this problem with and I wouldn't have been so upset.  ;-)

  • When I downloaded pics from my camera to iPhoto it put them in a file that was named with the download date. Can I do that with Aperture (as the download default)?

    I recently replaced iPhoto with Aperture. When I download pics into Aperture they are place in a file that's called "Untitled Project." When I downloaded pics from my camera to iPhoto they were put in a file that was named with the download date (YYYY MM DD). Can I do that with Aperture (as the download default)?

    My apologies.
    When I import I have an Applescript that stores the images in a year month day folder-project structure so I haven;t used the default Aperture behavior in some time. When I tested it out to reply to you I was doing it from the file system and it picked up the date from the folder.  mea culpa.
    Anyway the closest you can get is to have Aperture split the images by date. IN the Aperture preferences set the project split granularity
    Autosplit into Projects
    and then in the import window set
    Automatically split projects.
    This will give projects named Month Day, Year (ie: Mar 13, 2012) there is no way to change this
    As I said I have a script that runs on import and sets up a structure like:
    Of course many here will say not to name projects this way, that Aperture has the ability to sort by date and you're better off naming projects something more meaningful. For them that is true and it might be for you also. For me I like to store my masters this way, it works for the way I shoot.
    regards

  • Invalid state in SQL query for a function that was created with no errors.

    SQL> CREATE OR REPLACE FUNCTION overlap(in_start1 IN TIMESTAMP, in_end1 IN TIMESTAMP, in_start2 IN TIMESTAMP, in_end2 IN TIMESTAMP) RETURN NUMBER
    2 IS
    3
    4 BEGIN
    5 IF (in_start1 BETWEEN in_start2 AND in_end2 OR in_end1 BETWEEN in_start2 AND in_end2 OR in_start2 BETWEEN in_start1 AND in_end1) THEN
    6 RETURN 0;
    7 ELSE
    8 RETURN 1;
    9 END IF;
    10 END;
    11 /
    Function created.
    SQL> show errors;
    No errors.
    SQL>
    SQL> SELECT * FROM tbl where overlaps(current_time,current_time+1,current_time-1,current_time+2) = 0;
    SELECT * FROM tbl where overlaps(current_time,current_time+1,current_time-1,current_time+2) = 0
    ERROR at line 1:
    ORA-06575: Package or function OVERLAPS is in an invalid state
    I do not understand why overlaps is returned as in invalid state in the query, when it was created with no errors earlier. Could anyone help me?

    Marius
    Looking at the logic you are trying to create it looks like you are looking for overlapping time periods.
    Consider two date/time ranges:
    Range 1 : T1 - T2
    Range 2 : T3 - T4
    Do they overlap?
    1) No: T1 < T4 (TRUE)  T2 > T3 (FALSE)
    T1 --- T2
               T3 --- T4
    2) Yes: T1 < T4 (TRUE)  T2 > T3 (TRUE)
    T1 ---------- T2
               T3 --- T4
    3) Yes: T1 < T4 (TRUE)  T2 > T3 (TRUE)
    T1 -------------------- T2
               T3 --- T4
    4) Yes: T1 < T4 (TRUE)  T2 > T3 (TRUE)
                   T1 ----- T2
               T3 --- T4
    5) Yes: T1 < T4 (TRUE)  T2 > T3 (TRUE)
               T1 --- T2
           T3 ------------ T4
    5) No: T1 < T4 (FALSE) T2 > T3 (TRUE)
                    T1 --- T2
           T3 --- T4Answer: Yes they overlap if:
    T1 < T4 AND T2 > T3
    So you can code the logic in your SQL as simply:
    SELECT *
    FROM tbl
    WHERE range1_start < range2_end
    AND    range_1_end > range2_startIf you go around implementing PL/SQL functions for simple logic that can be achieved in SQL alone then you cause context switching between the SQL and PL/SQL engines which degrades performance. Wherever possible stick to just SQL and only use PL/SQL if absolutely necessary.

  • After installing an application that was created using the Application Builder

    After installing an application that I created using the Application Builder I get this error if I try to run " ANY " LabVIEW App's that I have built. "Executable Version 7.1.1 doesn't match Resource File 7.1. Check your configuration."
    The way that I tried to fix this is to reload LabVIEW 7.1 and DAQmx 8.0. I am using two NI-6528 switch cards.
    After I reload LabVIEW and DAQmx I can run my applications but as soon as I install one on this development machine the error begins again.
    The executable that I built works fine on the development machine and any other machine that I try it on but it appears that the Run-Time engine 7.1 becomes corrupt after I run setup.exe for the newly created application.
    I have built numerous Installers, setup.exe's in the past without this error. Just this latest one caused this problem to start.
    I can NOT upgrade to 7.1.1. I am doing work for many different sections of this factory and I can not force them to upgrade. I've asked. Others supply code for the same machines using LabVIEW 7.1.
    I am stuck creating executables and manualing moving the correct files to the target machines.
    What can be done?

    No. The KB article was talking about a machine with 7.1.1 installed. I have LabVIEW 7.1 installed.
    The machine that I am having trouble with is my development machine. LabVIEW 7.1, DAQmx 8.0.
    If I build the executable all is fine. I can still run old executables including the one I just built.
    If I create the installer all is fine. I can still run old executables including the one I just built.
    When I install the app on my development machine the corruption occurs. I can " NOT " run old executables including the one I just built. The subject error pops up.
    I have not moved any executables to the other machines yet. I don't want to corrupt others.

  • Using a environment variable that was created during the Task Sequence process - SCCM 2012 R2

    Hi,
    I'm triyng to use a environment variable that is create in the beginning of the Task Sequence.
    1. I'm using a VBScript that get the Exit Code of an application, and create the environment variable "iReturn" with the value of the exit code. (This is working)
    2. I add this variable in the CustomSettings.ini, like this "iReturn=%iReturn%
    3. After the step that I run the VBScript I put the "Gather" step to get the variables, but looking in the BDD.log the iReturn variable appears the same as the CustomSettings.ini configuration "iReturn=%iReturn%". (But, if I put a "Restart
    Computer" step after the VBScript, the BDD.log shows the iReturn variable with the right code.)
    Question: How can I update the environment variable of Windonws XP to use in the Task Sequence without restart.
    OR
    How can I configure autologon in SCCM 2012 (if have no way to update withou restart computer).
    I already tried the autologon with registry settings and a specific user, If I starts the process with this user works, but If I starts the process with other user, after the autologon the process doesnt continue, I have to do logoff and login with the user
    that I started the process.
    PS: All this steps have to be executed before the WinPE phase. 

    Environment variables must be explicitly set every time a system boots so unless you have a process to repopulate it after the reboot, it won't persist automatically.
    Why not store the value in a task sequence variable so that it persists after a reboot?
    Jason | http://blog.configmgrftw.com | @jasonsandys

  • HT1420 how can i download an app on a new phone that was downloaded with the same apple id?

    I mistakenly tried to use the same apple id to set up two phones and two iclouds. After realiing this would not work-I created a new apple id for mine, but it is not allowing me to download the same apps I purchased previously with the other phone. any suggestions?

    You can use the same account on multiple devices, both for use with the stores and for Settings > iCloud - what happened when you tried to use the same account on the second phone ? You should have been able to activate the phone with it and log into iCloud with it.
    If you want to download on the phone the apps that you bought with the other id then you will need to log into that other account on the phone : tap on the id at the bottom of the Featured tab and log out of it and then log in with the other account. But if you use iTunes Match, automatic downloads or redownload an account's past purchases then you might tie the phone to that account for 90 days : http://support.apple.com/kb/HT4627 (so you won't be able to do any of those three things on a different account until the 90 days have completed).

  • I have a acrobat reader, can I import text delimited data format to a PDF Form so that it can auto fill into forms that was created? If not, what about FDF and XML data

    I have a acrobat reader, can I import text delimited data format to a PDF Form so that it can auto fill into forms that was created? If not, what about FDF and XML data

    Yes, you can do all of that via Tools - Forms - More Form Options - Import Data, if you have Acrobat.
    If you only have the free Reader then you can still do it, but it requires a script.

  • How do I edit a PDF file that was created with Acrobat 6

    I was given a PDF catalog file from one of my manufactures to use on my web  site, I was told that I need to edit the file and take out the last page which  is for my eyes only not the public, but the way they instructed me to do so has  not worked, so does anybody have an idea on how to do this?
    Also they have tried to  send me a corrected file with the last page removed but the file size is to big  to be sent through email. Any help would be great. Thank You

    dgnvarsitydad I think you are posting in the wrong thread.
    hauptinc wrote:
    Ok thank you I will try this but how will I know if there is a security set and also my mistake what I downloaded was Acrobat X Pro which is $200 from Adobe's web site. I am not very familiar with Acrobat but I will give it a try thank you again. Gary
    To see if there is security, open the document, go to File>Properties>Security. It will tell you what is allowed and what is not allowed.
    Keep in mind that Acrobat Pro is not $200 unless you have a qualifying older version to upgrade from. If not, it's more like $449.

  • How to delete an apple-id that was created with an invalid email address?

    After upgrading to IOS.5.0, my apple-id for the IPod was incorrectly change to an invalid email address.
    I have verified my apple id on itunes on my desk top. How ever, the apple id on the IPad  is still an invalid address which I can't validate or change.
    Any ideas will be appreciated.
    Thanks
    Mitch

    If everything works in iTunes on the computer see if this works. Sign out of the invalid account/email address and the sign in with the correct one on the iPad. Settings>Store>Apple ID - sign out.
    Restart the iPad before you try signing in with the correct ID.
    Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.

  • How to resize a doc in CC that was created with cs4

    I created a tabloid size document in CS 4 and now need to resize it to Letter size using CC, not having much luck figuring it out.
    Help??

    What is the obstacle?
    ID CC will open a CS4 file.
    CS4 had Layout Adjustment which would automate re-sizing the document.
    CC has Liquid layout and perhaps Layout Adjustment. (I am not above CS.5)
    The amount of work to change Tabloid to Letter will be dependent on how well the file was created. 

  • How can I find a previous device that was registered with the same id but on a different laptop?

    my laptop was stolen along with my ipod touch. It was registered with that laptop but I need proof for an insurance claim. how can i show i registered it (owned it) with my new laptop?
    my ipod was previous to the most recent so i think thats a 4th gen
    i've used the same apple id on both laptops
    thanks

    ok well my last laptop was the only lapyop used to sync my ipod (thought that meant it was registered)
    i need proof of purchase for an insurance claim. i dont have the box because i threw it away when i got the ipod. is there any way of showing, on my new laptop, that i had my last ipod so that i can get a replacement.
    cheers

  • How can I replace an existing app on iTunes that was created with PhoneGap to a new version created with Adobe DPS? I get a 'supported devices' error message when I try to upload to iTunes! HELP!

    I created an app using PhoneGap a couple of months ago, and have now just amended it using Adobe DPS. But when I come to upload it to iTunes, I get the error message "This bundle does not support on or more of the device supported by the previous app version" How can I correct this?

    I suspect your PhoneGap app was flagged as running on both iPad and iPhone. You'll need the same from DPS. You can do this in AppBuilder at the start of the wizard where it asks what kind of devices you want to support. Note that this is only available to DPS Professional and Enterprise customers. If you are a Creative Cloud customer building a Single Edition application it will only support iPad.
    Neil

Maybe you are looking for