Please help me in Converting Lilian Format to Date

Please Convert this "38619" Lilian format date to "DD-MM-YYYY''
Thanks in Anticipation!!!

Lilian date is calculated as number of days since 15-10-1582. Julian date is calculated as number of days since January 1, 4713 BC. So there is a fixed offset between those two. Let's calculate it:
SQL> select to_char(d,'j') -- Julian date
  2    from (select date '1582-10-15' d from dual)
  3  /
TO_CHAR
2299161
1 row selected.This day is Lilian day 1 and Julian day 2299161, so the offset is 2299160.
SQL> var LILIAN_DATE number
SQL> exec :LILIAN_DATE := 38619
PL/SQL procedure successfully completed.
SQL> select to_date(:LILIAN_DATE + 2299160,'j')
  2    from dual
  3  /
TO_DATE(:LILIAN_DAT
08-07-1688 00:00:00
1 row selected.And if you want it as a formatted string:
SQL> select to_char(to_date(:LILIAN_DATE + 2299160,'j'),'dd-mm-yyyy')
  2    from dual
  3  /
TO_CHAR(TO
08-07-1688
1 row selected.Regards,
Rob.

Similar Messages

  • Please help me to convert from 5.0 to 2009

    Please help me to convert from 5.0 to 2009
    Source LabVIEW version: LabView 5.0
    Target LabVIEW Version: LabView 9.0
    Thank you so much..
    Solved!
    Go to Solution.
    Attachments:
    shutter.llb ‏255 KB

    LabVIEW 9.0
    Attachments:
    shutter.llb ‏90 KB

  • TS3899 After updating to ISO6, my email sending get extremely slow or dispeard. on the botton line of mail page always indicate "sending # of 9", however I do not know where to check or delete these unsent items. Please help! It has consumed lots of data.

    After updating to ISO6, my email sending get extremely slow or dispeard. on the botton line of mail page always indicate "sending # of 9", however I do not know where to check or delete these unsent items. Please help! It has consumed lots of data.
    I use @me.com and @hotmail.com

    Hi,
    >>A CHAR datatype and VARCHAR2 datatype are stored identically (eg: the word 'WORD' stored in a CHAR(4) and a varchar2(4) consume exactly the same amount of space on disk, both have leading byte counts).
    Ok, but on the other hands:
    SGMS@ORACLE10> create table x (name char(10), name2 varchar2(10));
    Table created.
    SGMS@ORACLE10> insert into  x values ('hello','hello');
    1 row created.
    SGMS@ORACLE10> commit;
    Commit complete.
    SGMS@ORACLE10> select vsize(name),vsize(name2) from x;
    VSIZE(NAME) VSIZE(NAME2)
             10            5
    SGMS@ORACLE10> select dump(name),dump(name2) from x;
    DUMP(NAME)                                         DUMP(NAME2)
    Typ=96 Len=10: 104,101,108,108,111,32,32,32,32,32  Typ=1 Len=5: 104,101,108,108,111Cheers

  • Please help me  one column i have this data col1

    Please help me
    one column i have this data
    col1
    Hi this is <SPAN style="FONT-SIZE: 18pt" data-mce-style="font-size: 18pt;">Rabindra.<SPAN style="FONT-SIZE: 10pt" data-mce-style="font-size: 10pt;">R u <SPAN style="FONT-SIZE: 18pt" data-mce-style="font-size: 18pt;">remember</SPAN> me .</SPAN></SPAN
    dfg sdfgfdsg sfdgsdf gsfdgsdfsd <SPAN style="FONT-SIZE: 18pt" data-mce-style="font-size: 18pt;"><STRONG>Rabindra</STRONG></SPAN
    i need like
    col1
    Hi this is Rabindra.R u remember me.
    dfg sdfgfdsg sfdgsdf gsfdgsdfsd Rabindra

    Hi,
    If str is a string, and you want a version of it without any of the tags (that is, without the '<' or '>' characters, or anything between them), then you can use REGEXP_REPLACE, like this:
    REGEXP_REPLACE ( str
                  , '<[^>]+>'

  • PLEASE HELP!! Ipod Nano formatting for 12 hours now!

    Hi... please can you help me.
    I have just bought an ipod nano 2gb and im using windows xp pro. I inserted the itunes cd as the guide told me to and after clicking next a few times it asked me to plug in my ipod to check if it needs formatting. I did this and it has been formatting ever since!!! 12 hours ago now! the bar on the box just gets to the end and then goes back to the start again and the nano screen just continually flashes do not disconnect.
    What do i do? Please help me!!!

    Mine was doing the same thing after the updater gave me the "new" software" - Follow this topic - I think you can solve your issues
    http://discussions.apple.com/thread.jspa?threadID=447687&tstart=0
    Good Luck!

  • Please help me with converting a PHP to Java Servlet

    Hi
    Can any one help me to convert a PHP file to Java Servlet
    <?php
    / yadl_spaceid - Skip Stamping /
    // Yahoo! proxy
    // Hard-code hostname and path:
    // search = http://api.search.yahoo.com/WebSearchService/V1/webSearch
    // api.local
    // api.travel
    define ('PATH', 'http://api.search.yahoo.com/WebSearchService/V1/webSearch');
    $type = "text/xml";
    // Get all query params
    $query = "?";
    foreach ($_GET as $key => $value) {
    if(($key == "output") && ($value == "json")) {
    $type = "application/json";
    $query .= urlencode($key)."=".urlencode($value)."&";
    foreach ($_POST as $key => $value) {
    if(($key == "output") && ($value == "json")) {
    $type = "application/json";
    $query .= $key."=".$value."&";
    $query .= "appid=jennyhan_ac";
    $url = PATH.$query;
    // Open the Curl session
    $session = curl_init($url);
    // Don't return HTTP headers. Do return the contents of the call
    curl_setopt($session, CURLOPT_HEADER, false);
    curl_setopt($session, CURLOPT_RETURNTRANSFER, true);
    // Make the call
    $response = curl_exec($session);
    header("Content-Type: ".$type);
    echo $response;
    curl_close($session);
    ?>

    I'm locking this [double post|http://forums.sun.com/thread.jspa?threadID=5394158&messageID=10749368#10749368].

  • Please help me to convert these Files to Labview v6.02

    Hi all...
    Could anyone help me to convert these file under the answered questions title "how to store data to global array"
    Filename:
    Global Write (Binary Executable, 10K)
    Global (Binary Executable, 9K)
    Thanks!

    Here you go, Juni76.
    J.R. Allen
    Attachments:
    global_602.vi ‏10 KB
    Global_Write_602.vi ‏11 KB

  • HT204266 what do i do when my app store wont let me update or buy anything, all it says it cannot connect to itunes store. please help. and my itunes is up to date.

    what do i do when my try to update my apps it tells me that i cannot conect to itunes store. Please help...

    Try:
    Can't connect to the iTunes Store

  • HT204204 i tried to update to ios 8.2 on my iphone 5s when message popup to me now my iphone not working, please help i dont want to lose my data

    hi
    i tried to update to ios 8.2 on my iphone 5s when message popup to me now my iphone not working, please help i dont want to lose my data

    What is the exact text of the message you got? And did you not back up before you updated?

  • Please help me on error -200284 for usb6008 data A/D

    Hi,
    I am working on the A/D using usb6008, I program in visual c++.  I create a dialog to test the function of sample program: contAcquireNChan.c               in  NI-DAQmx Base.  I just changed the mode to DAQmx_Val_FiniteSamps and each time I just want to get several data. I used a button to start the a/d. The following is the code. The problem is very strange that while I click the start button for the sixth time, this error -200284 will occur when calling this function:
     DAQmxErrChk (DAQmxBaseReadAnalogF64taskHandle,pointsToRead,timeout,DAQmx_Val_GroupByScanNumber,data,2,&pointsRead,NULL));
    The discription of this error is:
    "Some or all of the samples requested have not yet been acquired.
    To wait for the samples to become available use a longer read timeout or read later in your program. To make the samples available sooner, increase the sample rate."
    I do not know what happened. And how to solve this problem. Please help me.
    The following is the code:
    void CBTTest001Dlg:nStart()
       // Task parameters
        int32       error = 0;
        TaskHandle  taskHandle = 0;
        char        errBuff[2048]={'\0'};
        time_t      startTime;
        bool32      done=0;
        // Channel parameters
        char        chan[] = "Dev1/ai0";
        float64     min = -10.0;
        float64     max = 10.0;
        // Timing parameters
        char        clockSource[] = "OnboardClock";
        uInt64      samplesPerChan = 2;
        float64     sampleRate = 2000.0;
        // Data read parameters
        #define     bufferSize (uInt32)1000
        float64     data[bufferSize * 5];
        int32       pointsToRead = bufferSize;
        int32       pointsRead;
        float64     timeout = 10.0;
        int32       totalRead = 0;
     index++;
     if(index==6)
        int a =0;
     m_bWorkFlag = true; 
      double a1= data[0];
      double a2= data[1];
      double a3= data[2];
      double a4= data[3];
      DAQmxErrChk (DAQmxBaseCreateTask("",&taskHandle));
      DAQmxErrChk (DAQmxBaseCreateAIVoltageChan(taskHandle,chan,"",DAQmx_Val_RSE,min,max,DAQmx_Val_Volts,NULL));
      DAQmxErrChk (DAQmxBaseCfgSampClkTiming(taskHandle,clockSource,sampleRate,DAQmx_Val_Rising,DAQmx_Val_FiniteSamps,samplesPerChan));
      DAQmxErrChk (DAQmxBaseCfgInputBuffer(taskHandle,2000)); //use a 100,000 sample DMA buffer
      DAQmxErrChk (DAQmxBaseStartTask(taskHandle));
      DAQmxErrChk (DAQmxBaseReadAnalogF64(taskHandle,pointsToRead,timeout,DAQmx_Val_GroupByScanNumber,data,2,&pointsRead,NULL));
     //    printf("\nAcquired %d total samples.\n",totalRead);
      m_fAnalog1 = data[0];
      m_fAnalog2 = data[1];
      m_fAnalog3 = data[2];
      m_fAnalog4 = data[3];
      m_fAnalog5 = data[4];
      UpdateData(false);
      if(taskHandle != 0) {
    //   DAQmxBaseStopTask (taskHandle);
       DAQmxBaseClearTask (taskHandle);
     return;
    Error:
        if( DAQmxFailed(error) )
            DAQmxBaseGetExtendedErrorInfo(errBuff,2048);
        if( DAQmxFailed(error) )
            printf("DAQmxBase Error: %s\n",errBuff);

    Dear Neal,
    Thank you so much !!
    "DAQmx Base was designed for use on operating systems other than Windows". Maybe that's the reason why I always met problems.  I am using windows now !! The only reason for me to use DAQmx Base is that it comes with the USB6008 device so that I think NI recommend to use it ! I also downloaded DAQmx from NI but I did not tried it (in fact it took me several hours to switch the firmware back to DAQmx Base ). I will try It now and tell you the result.
    "You say that you thought you solved the issue but did you not?"
    Yes.
    " Did you add the stop task function before and that is what you thought solved the issue? "
    Yes.
    I started from the example and do some modifications. First I met -200284 error and I found it is the caused by wrong number of data to be read. I changed to finite namber data read.
    Then I met sixth reading problem, at that time I use a button clicking to read the data.when I read for the sixth time, It will occur (I forgot the phenomena). I added a  stop task function and I thoought I solved the problem. I knew for a finite number data reading, stop function is not needed, but I do not have any other method so I tried it. "sixth reading problem" solved, but When I move the data reading function to ontimer function recently. The program will halt -- take 99% of CPU time after 30 second of reading (sometime several minutes, sometimes several seconds). If I move the start task back to OnInitialUpdate() function and cancel stop function, halt error will not occur but the data I read in not correct. That is the whole thing. The following is the code relative to the data read.
    Initialization;
    void Ctest2Dlg:nInitialUpdate()
       DAQmxErrChk (DAQmxBaseCreateTask("",&taskHandle));
      DAQmxErrChk (DAQmxBaseCreateAIVoltageChan(taskHandle,chan,"",DAQmx_Val_RSE,min,max,DAQmx_Val_Volts,NULL));
      DAQmxErrChk (DAQmxBaseCfgSampClkTiming(taskHandle,clockSource,sampleRate,DAQmx_Val_Rising,DAQmx_Val_ContSamps ,samplesPerChan));
    Data read
    void Ctest2Dlg:nTimer(UINT nIDEvent)
      if(taskHandle != 0)
         DAQmxErrChk (DAQmxBaseStartTask(taskHandle));
       DAQmxErrChk (DAQmxBaseReadAnalogF64(taskHandle,pointsToRead,timeout,DAQmx_Val_GroupByScanNumber,data,100,&pointsRead,NULL));
       DAQmxBaseStopTask (taskHandle);

  • Converting zulu format to date and time format

    I want to convert zulu format to regular dateand time format. so for e.g I have this date and time in my table
    021731ZJUN06, I want to convert it to 2006-06-02 17:31:00
    I wrote this in sql server, but don't know how to do this in oracle
    ALTER function [dbo].[ZULUToDateTime](@initDate varchar(20))
    RETURNS datetime
    AS
    BEGIN
    DECLARE @NewDate datetime
    SET @NewDate = NULL
    IF @initDate <> 'false'
    BEGIN
         SET @NewDate=     CONVERT(datetime,LEFT(@initDate,2)+ ' ' + STUFF(right(@initDate,5),4,0,' ') + ' ' +STUFF(SUBSTRING(@initDate,3,4),3,0,':'),121)  
    END
    RETURN @NewDate
    END

    Like this?
    SQL> select to_date('021731ZJUN06', 'ddhh24mi"z"monrr')
      2  from dual;
    TO_DATE('021731ZJUN0
    02-jun-2006 17:31:00Gotta love Oracle's date formatting fuctions :-)
    The format above is my default session format, if you explicitly want the format you showed, you need an extra to_char like:
    SQL> select TO_CHAR(to_date('021731ZJUN06', 'ddhh24mi"z"monrr'), 'yyyy-mm-dd hh24:mi:ss')
      2  from dual;
    TO_CHAR(TO_DATE('021
    2006-06-02 17:31:00John
    Edited by: John Spencer on Nov 10, 2011 1:45 PM
    Added correct output format.

  • Please help! I accidentally deleted all my data off my iphone

    Please someone help me! I was trying to work out how to use the find my iphone app and accidentally deleted my whole
    content! I have lost my photos, notes, contacts and all this other stuff
    PLEASE HELP ASAP!!

    I'm curious. What is it about this forum, focussed on a now-discontinued productivity application named "AppleWorks", that attracts so many questions like this one, totally unconnected with that application?
    I'd appreciate an answer to that. Meantime, I've requested a transfer of the question to a more appropriate community.
    Regards,
    Barry

  • Please Help !!!! Problem with Date Format in JSP

    Hi all,
    I am getting the following date format
    Sun Jun 05 00:00:00 GMT+05:30 2005
    as output of the below mentioned code:
    <% Date avldt=new Date(ts.parse(dt).getTime());%>
    <% out.println(avldt);%>
    But, I want to get 05-06-2005 instead of the above and then convert it into 2005-06-05 (YYYY-MM-DD) in order to store it into Mysql table as date field.
    Please advice, what should i do for it ?
    Thanks for any help in advance.
    regards,
    savdeep.

    a)To convert Date into String and back use java.util.SimpleDateFormat
    b) To insert a Date in a DB you should try to use preparedStetement this allows you to use the method setDate(java.sql.Date adate) in stead of relying on your own convertion.

  • Please Help - Need to convert 400 gigs of giga samples into my EXS24

    Does anybody know what would be the fastest and most efficient way to convert 400 gigs of giga file samples from my PC into my logic pro EXS24 sampler on my mac?
    I purchased chicken system's translator professional which does batch conversion, but my pc was not working well with that application. I need to find a new way of converting. I know i can convert giga samples one by one in the exs24 but with 400 gigs of giga samples, it could take days and days.
    Any ideas wold be extremely helpful.
    Thank you for your time.
    -Smooth

    CDXtract is gettin' third'ed by me.... However, u r into one heu of a conversion armageddon....
    I recently did a huge convertion of my samplecell II lib into AKAI format...
    My recommendation is to convert on the fly - meaning - convert what u have to convert when u need it.
    And make sure when doing batch convertions that the sample programs u really want to WORK like it did in the GIGA gets special attention... Lots of the conversions done by cdxtract - are indeed converted but attack - decay etc... veries from sampler to sampler although the values are the same

  • Please help me to convert my music back

    I have just moved away from the iphone , i have read earlier posts ref converting back to mp3, i thought i had done this but having put my music on my new phone it wont play!!  is there a easy way? strange how when you join apple everything converts on the click of a switch but changing back is made so difficault, annoying as alot of this music i had bought already and yet itunes is stopping me use it as i want.  pls help as ive had enough now and am having to clear 250 trcks baqck off my new phone.

    Hello sneek7,
    You can use iTunes to convert a song to an MP3 version following the steps in the article below:
    iTunes: How to convert a song to a different file format
    http://support.apple.com/kb/HT1550
    One thing to keep in mind is that you will still have the original version of the song in iTunes as well as the MP3 version, so when you are syncing with your new device, be sure you are selecting the MP3 version to sync. 
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

Maybe you are looking for

  • Reversal of documents already valuated

    Hi, I have a problem regarding revaluation. -I revaluate the august balance sheet on the 2nd of the September -Then I reverse one of the documents on the 3rd of September which were included on the 2nd of September -Then I run revaluation again on th

  • BAPI_PO_CHANGE (Services - ESLL)

    Hello, I want to change the quantity and price for Services on PO. Please which fields and structures do I need to maintain in the BAPI. Regards, Abdullahi

  • Launch iChat at log in.....

    hello. I set my iChat to launch when I log into my computer, and now i can't find where to turn that feature off. Can someone help? thanks. alex

  • How to display voltage data?

    I have the JKR AI continuous scan.Vi function in my main Vi. From the JKR AI continuous scan.Vi, I get the voltage data. I need to see on the block diagram of the main Vi the voltage data which is in column 3 of my data acquisition or channel 0 of th

  • Raw + JPG: principles and purpose

    Dear all, I have received a few thousand pictures in RAW+JPG. I understand that I can either view them as separate files (check the relevant option in the preferences and re-sync the folder) or view them as one single entity, then marked by LR as "RA