Date time conversion

Someone has exported a CSV file with Date Time field sent as text with 'period' separation. How can I convert from 12.10.2009 10:00:00 to a recognised date time for future date difference calculation?
Regards,
Brian.

Hi
Try the following formula :
Numbervar hh;
Numbervar mm;
Numbervar ss;
hh:=tonumber(Mid(,1,2));
mm:=tonumber(Mid(,4,2));
ss:=tonumber(Mid(,6,2));
Time(hh,mm,ss)
Thanks,
Sastry

Similar Messages

  • Date/time conversion from UTC to CET

    Hello,
    Jjust a little question to our SAP BI community!
    Is there a BI function/ggod way that converts a (datetime) string DDMMYYYYHH:MM:SS  in UTC time zone into a string DDMMYYYYHH:MM:SS in  CET timezone ?
    We receive this string in input in a flat file and need it to convert from UTC to CET.
    Or do you know any way to convert a date/time from IUTC to CET, eveen using an ABAP function?
    Thanks a lot,
    Matthieu

    Hi,
    Check this thread for time conversion from UTC to Local time
    [ABAP statement for converting UTC date/ time to local date/time],
    Regards,
    Daya Sagar

  • UTC Date/Time conversion

    Is there a documented formula for converting UTC date/time stamps in CallDetailRecords (e.g., 1074902387) to a recognizable time/date?

    In Call Manager, the CDR exports are in EPOCH time. Here is the  formula to convert epoch time in a Call Manager CDR to a standard format  in excel. After using the formula, you will need to format the cell for  date and time.
    =(((E2-(6*3600))/86400)+25569)
    E2 = cell reference
    6 = Timezone Offset (this is Central Standard time)
    3600 = Number of seconds in an hour
    86400 = Number of seconds in a day
    25569 = Excel hack because excel counts epoch from 1/1/1904 and most others start at 1/1/1970.
    Found this formula on the following webpage:
    http://ciscovoiceguru.com/473/convert-epoch-utc-time-in-excel/

  • Oracle Interval and Date/Time Conversions. Help!

    Hi guys.
    I am trying to migrate from MySql to Oracle some queries, but I don't know how works some SQL functions in Oracle.
    One of my queries I have to add to a date variable an amount of microseconds, seconds or minutes, in mysql the function is like this:
    DATE_FORMAT(LOCALDATE + INTERVAL DeltaT * 1000 MICROSECOND , '%d/%m/%Y %H:%i')
    I woud like also convert seconds, minutes, or hours to a Time variable, my example in mysql is like this:
    TIME_FORMAT(SEC_TO_TIME(DeltaT div 1000),'%H:%i')
    By the way: DeltaT is in seconds and LOCALDATE is a date variable.
    I hope you can help me with this.
    Thanks.

    SQL> CREATE TABLE t (localdate DATE, deltat INTEGER);
    Table created.
    SQL> INSERT INTO t VALUES (DATE '2006-12-25', 1234);
    1 row created.
    SQL> INSERT INTO t VALUES (DATE '2006-12-25', 23456);
    1 row created.
    SQL> alter session set nls_date_format = 'DD-MON-RRRR HH24:MI:SS';
    Session altered.
    SQL> SELECT localdate
      2       , deltat
      3       , localdate + deltat/86400
      4  FROM   t;
    LOCALDATE                DELTAT LOCALDATE+DELTAT/864
    25-DEC-2006 00:00:00       1234 25-DEC-2006 00:20:34
    25-DEC-2006 00:00:00      23456 25-DEC-2006 06:30:56
    2 rows selected.

  • DID YOU KNOW?? - ABOUT DATE TIME CONVERTERS??

    Hi All,
    DID YOU KNOW??
    That the Creator IDE provides a set of converters that you can use to convert component data. If your input field is for numbers, then you most likely need a converter. Converters are also good for formatting dates, times, and currency values. The standard converters, which you can use are located in the Converters section of the Components Palette.
    The Date Time Converter
    A Date Time Converter Converts between java.lang.String values in your component properties and data types of java.util.Date. The conversion usually applies to the property of a component used to display values and to pick up values entered by users, such as the text property of a Text Field component.
    An example is binding a JavaServer Faces component to to a database column of type DATE. When you bind a component, the IDE normally identifies the data type for you and sets the appropriate converter when you establish a binding to the value property. However, you can also add this converter manually by setting the component's converter property.
    * Note: If you are using an Oracle database, use the SQL Timestamp converter instead.
    Learn more :-
    JDBC Type Conversions
    http://developers.sun.com/prodtech/javatools/jscreator/reference/docs/help/2update1/connect_data/jdbc_type_conversions.html
    Using Converters
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/converters.html
    We would like to know the following from you :-
    1) Why and How are you using Converters in applications you are building?
    2) Did you face any challenges while using them?
    3) Did you find any cool ways of using these or build any cool custom converters?
    4) Any feedback you might want to share about converters to make it easier in using them.
    Thanks for all your inputs and for joining in the discussion.
    K

    did you know that sqlTimestamp converter returns value of java.sql.Date type if you are using sun's oracle jdbc driver. It will return the correct type if you use oracle's jdbc driver. Not sure why this happen, though. Bug?

  • Error while loading : Time conversion from 0CALDAY to 0FISCPER

    Hi ,
           I get the following error when loading to an ODs .
    My 0FISCPER is mapped to one of the date fields from the extractor (Document date) and also Have 0FISCVARNT as part of data fields  .
    " Time conversion from 0CALDAY to 0FISCPER (fiscal year ) failed with value 20060405 " .
    thanks .

    Hello CG
    Please refere this forum
    Time conversion problem
    Thanks
    Chandran

  • "Date / Date Time" type parameters in crystal reports 2008

    i am using parameters in crystal report to select records. one of the parameters is "From Date" of type Date Time.
    i mapped this parameter to a field "DateIn" of type smalldatetime in my sql table.
    Now, when i open the report it asks for "From Date" but b y default it sets the time to current time so i have to change it to 00:00:00 manually. i want it to show 00:00:00 by default. which means i don't want time here.
    For this if i select the datatype of parameter "From Date" as Date only then i am not able to map it to the "DateIn" field of the sql table.
    Please help me out of this.
    Edited by: rohit0825 on Jun 2, 2010 2:25 PM

    >
    Deepravs wrote:
    > Hi Rohit,
    >
    > Change the Parameter to Date Datatype and use this formula in the "Record Selection Formula " (Report Tab -> Selection Formulas -> Record)
    >
    > = CDateTime ({?From Date})
    >
    > Though the parameter is date datatype it converts to datetime datatype amd maps to the desired column.
    >
    >
    > Thanks,
    Great !!!
    this is working.
    i found another way, i changed the datatype of parameter to Date and click ok and everything was good, it doesn't require any conversion to date time.
    Thank You so much. All Points You.
    Edited by: rohit0825 on Jun 3, 2010 10:47 AM

  • How to get calendar icon to show again when entering data in date/time field.

    Hello,
    First time posting on this site.  I am fairly new to using SQL Server Express.  I created a split-database in MS Access 2010 and have successfully migrated over the backend database to SQL Server Express.  When I was using the FE forms in
    Access, I use to be able to see a calendar icon where I could select the month and day in the date/time field.  
    I compiled the FE forms to binary format .accde so that I could distribute this to the users and they couldn't change my forms. After migrating the tables to SQL Server express for the BE, I am no longer able to see the calendar icon when I try to enter
    in data in the date/time field.   Same for the original .accdb file before the binary conversion to .accde.  
    How do I get the calendar icon back to show on the form when a user is entering in data?  I appreciate any assistance I can get. Thank you!
    Thai

    Hello Cheer,
    I don't believe the table changed when migrating from Access.  I had two tables before the migration, one was for the SwitchBoard Manager and the other table was for the database table.  I used the Switchboard to navigate to different menus, such
    as the Main Form, Power Form, Server Form, etc.  Let me know if I can provide any other information to help you narrow this down for me.   
    Thank you for your assistance. 
    Thai

  • Date/Time in SQL

    Hey,
    I'm trying to get CF to put the date or date/time into the SQL 2000 date/time field by using Toolbox insert record form wizard. Then use the date picker on the date field.
    my error was
    Error Executing Database Query.
    [Macromedia][SQLServer JDBC Driver][SQLServer]The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value.
    the SQL date/time field is 8 characters long, so, I don't know the best way to go about shoving a date/time into it in CF.
    Thanks in advance!

    Hi Kenneth,
    I´m by no means a CF expert, but...
    the SQL date/time field is 8 characters long, so, I don't know the best way to go about shoving a date/time into it in CF
    ...do your ADDT Control Panel´s *database* "Date format" and "Time formats" settings match the required SQL 2000 date/time format ?
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • How to get replied date & time of an email

    I am using MS outlook 2010 from this month (August 2014), So i work on so many emails from different persons and I want to see time taken to on each email from the time I recieved it till the time I replied. Once I get a column with replied time details;
    I can export it to excel so as to report to my manager about my TaT (turn around time), I am new to this forum and this is my first post, please help thanks. (I have browsed here for the same but couldn't get what I need)

    Hi,
    Several suggestions to find the replied date & time:
    1. We can find related emails in Outlook, then find the replied date & time from the related emails:
    Right click on the message in the list, Select "Find Related" -> "Messages in This Conversation" from the menu that comes up.
    2. View tab -> Conversations -> check "Show as conversations", then we can easily find other emails in the conversation, then find the replied date & time.
    Anyway, both methods above are manual and based on your request description, I don't think the whole process can be performed with the build-in feature automatically. However, the whole process may be realized via VBA, if you can accept a VBA method, I suggest
    you post the detailed request in Outlook for Developers forum:
    http://social.msdn.microsoft.com/Forums/office/en-US/home?forum=outlookdev
    Regards,
    Melon Chen
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Automatic time conversion is not possible

    Hi Friends,
    I have a problem in Transformation Level when i am mapping "automatic time conversion is not possible for source field FISCPER to 0FISCYEAR,FISCPER3".can any one help me in this issue.
    Thanks
    Narasimha

    Yes if it was date filed then it would have been possible.If you are trying to derive the fiscal year between datasource and cube then you can get it with the help of simple filed level routine.
    Map your fiscper field from source to fiscal year--Rule type Routine.
    RESULT = SOURCE_FIELDS-(Technical name of source field)+0(4).
    For Posting period
    Map your fiscper field from source to fiscper3 year--Rule type Routine.
    RESULT = SOURCE_FIELDS-(Technical name of source field)+4(3).
    This will give you the required output.
    Regards,
    AL

  • How do I preserve date/time when converting to DNG?

    When I convert a file to DNG format in Lightroom, it changes the capture time in the metadata to the current date and time, rather than copying the source data.  Is there a way in which I can tell it to leave my dates alone?

    You wrote: “I noticed my mistake. It seems that what the conversion process was changing was the ‘Metadata Date’ and ‘Date Time’ fields, but ‘Date Time ‘" and ‘Date Time Digitized’ were remaining the proper, original date. The cause of my confusion was that my Metadata panel view was hiding all but the ‘Date Time’ field, so it appeared as though it had overwritten my prior date information.”
    Date/times in photo metadata can be very confusing.  There are all these fields with confusing names imposed by legacy industry standards -- I challenge anyone except a metadata nerd like me to remember the meanings and differences of Date/Time, Date/Time Original, Date/Time Digitized, Capture Time, Metadata Date, Modify Date, ....  The worst are the two XMP fields Date Created and Create Date, which have two very different meanings!  And every app and operating system makes a half-hearted attempt to "simplify" it for the user by choosing different names.   
    LR makes no serious attempt to make this easy for the user, and over the first several versions, it's handling of date/times was pretty sloppy. (It still has outstanding bugs that don't crop up that often in practice.)  You would think that at least LR would provide roll-over tool tips on the field names in the Metadata panel explaining each field.

  • RE: Oracle DATE data format conversion..

    <C.M> Motta's question about dates and oracle>
    Dealing with dates and Oracle is somewhat of a nuisance. Oracle is very
    particular about how date strings are formatted, and if you get it wrong,
    you get the (unhelpful) message that C.M. Motta showed us. However, if
    you pass a DateTimeData to Oracle, Forte' does the right formatting for you.
    If you do need to format the date prior to interacting with Oracle, use the
    following format:
    dd-mmm-yy <time component>
    You can change the default format, but it is not easy.
    If you customise Express generated code that interacts with an Oracle
    database, again, make sure that you pass a DateTimeData, and not the
    .TextValue.
    Good luck!
    Richard Kirk

    Date: Wed, 06 Nov 1996 08:18:37 -0500
    To: "C. M. Motta" <[email protected]>
    From: Jim Milbery <[email protected]>
    Subject: Re: Oracle DATE data format conversion..
    Cc: [email protected]
    Cheers:
    Most likely what is happening is that you are using the default date
    format of Oracle, and you are sending a four-character year. As follows:
    SQL> insert into jimbo values ('01-dec-1997')
    2 /
    insert into jimbo values ('01-dec-1997')
    ERROR at line 1:
    ORA-01830: date format picture ends before converting entire inputstring
    >
    Oracle defaults to a format of 'dd-MON-yy'
    You can either truncate the year, or manipulate the date to match the standard
    database as follows:
    insert into jimbo values (to_Date('01-jan-1997', 'DD-MON-YYYY'))
    \jimbo
    At 09:21 AM 11/6/96 -0200, you wrote:
    Forte Users,
    First, Id like to thank all those who answered my question on
    droplist & SQL. I got just what I was looking for: its up and runnunig
    now.
    I have another question: Im trying to insert a DATE into an Oracle
    database. The source date is:
    data : DateTimeData = new;
    data.SetCurrent();
    So, when I try to insert data.Value or data.textvalue into DB, I
    get the following exception:
    ORA-01830: date format picture ends before converting entire
    input string.
    Are there any suggestions?
    Thanks for your help,
    C.M. Motta
    ====================================================================
    Jim Milbery
    Milbery Consulting Group
    132 N. West St., Allentown, PA 18102
    O: 610 - 432 - 5350 F: 610 - 432 - 5380
    E-Mail : [email protected]
    ====================================================================

  • Updating date/time

    I want to be able to update the value of a datetime field in
    ms sql server to a future date/time.
    e.g. if a bidder is placing a pre-auction bid 3 days before
    the auction starts i want to change the date & time of this bid
    to 1 minute before the auction starts.
    <CFSET
    Start_Date=#CreateODBCDateTime(GetAuctions.Auction_Date)#>
    <CFSET
    Start_Time=#CreateODBCTime(GetAuctions.Start_Time)#>
    <CFSET Bid_Date=#DateFormat(Start_Date, "yyyy-mm-dd")#>
    <CFSET Bid_Time=DateAdd("n", -1, "#Start_Time#")>
    <CFSET New_Bid_Date=#DateFormat(Start_Date,
    "yyyy-mm-dd")#&' '&#TimeFormat(Bid_Time, "hh:mm:ss.l")#>
    <CFQUERY DATASOURCE="#Application.Datasource#"
    NAME="UpdateBid">
    UPDATE Bids
    SET
    Bid=<CFQUERYPARAM VALUE="#Form.Bid#"
    CFSQLTYPE="CF_SQL_DECIMAL" SCALE="2">,
    Bid_Date=<CFQUERYPARAM VALUE="#New_Bid_Date#"
    MAXLENGTH="30">
    WHERE (Bids.AuctionID=<CFQUERYPARAM
    VALUE="#Form.AuctionID#" CFSQLTYPE="CF_SQL_VARCHAR"
    MAXLENGTH="50">) AND (Bids.BidID=<CFQUERYPARAM
    VALUE="#BidID#" CFSQLTYPE="CF_SQL_INTEGER">)
    </CFQUERY>
    this does insert the date OK but not the time in 24 hour time
    format
    e.g. 2008-12-01 02:59:00.000 which has been inserted into the
    database should really be 2008-12-01 14:59:00.000
    then if i try and add tt to: <CFSET
    New_Bid_Date=#DateFormat(Start_Date, "yyyy-mm-dd")#&'
    '&#TimeFormat(Bid_Time, "hh:mm:ss.l:tt")#> i get the
    following error:
    [Macromedia][SequeLink JDBC Driver][ODBC
    Socket][Microsoft][ODBC SQL Server Driver][SQL Server]Conversion
    failed when converting date and/or time from character string.
    how can i get the time added as 24 hour?

    it is for a multi series line graph in a reverse auction.
    Currently the pre-auction bids are placed several hours before the
    auction starts but then there could be like over 100 bids in an
    hour which means the graph gets skewed a bit. the pre-auction bids
    are needed to be closer to the starting time of the auction and it
    doesnt matter in this case if the pre-auction bids have the exact
    same time.
    a sample value of the bid_date is 2008-12-02 10:58:56.447
    i tried the following in sql:
    SELECT CAST(Auction_Date AS Date),CAST(CONVERT(char(8),
    dateadd(minute, -1, Start_Time), 108) AS Time)
    FROM Auctions
    it returned 2 columns - one for the date and one for the time
    e.g 2008-12-02 15:59:00.0000000
    i then tried:
    Update Bids
    SET Bid_Date =(SELECT CAST(Auction_Date AS
    Date),CAST(CONVERT(char(8), dateadd(minute, -1, Start_Time), 108)
    AS Time)
    FROM Auctions
    WHERE AuctionID='auctionidhere')
    WHERE BidID=bididhere
    i then get the followng error:
    Only one expression can be specified in the select list when
    the subquery is not introduced with EXISTS.

  • For custom tables should we use UTC for date/time fields

    A general question.
    Can anyone confirm that SAP does seem to be moving towards storing date/time in UTC format?
    We're building custom tables and we're making it a standard to store date/time fields in UTC format.
    Regards,
    Lavaughn

    Hello Lavaughn,
    I can not speak for SAP, but from my personal experience TimeStamps are the state of the art to store time date info in db tables. Even with date/Time fields a conversion to the local timezone is necessary. Of course you can reuse your db definition on dynpros. But since UI and business logic will be divided anyway this is also not really a valid point.
    Best Regards
    Klaus

Maybe you are looking for