Non US date string format

I have csv files (many) with time stamped data in the format ddmmyyyy (and yymmdd). I seem unable to tell Diadem what format to expect and it seems to assume the US format mmddyyyy is good enough!. Short of reformatting all my data time stamps can't I tell Diadem what to expect? (I can only find how to change the format used to display the date).
Thanks, BAS

Hi Brad,
Yes I have been dragging my CSV files from the navigator into the data portal as the Import wizard will not work on these files. See details of error below.
In my CSV files the data delimiter is "," with a date delimiter "-" white space and time delimiter ":" ie[dd/mm/yyyy hh:mm]
I have used the import wizard in the past but when using the ASCII import wizard my current CSV files (with either extension .csv or .txt) I get the error message below after selecting the file, then the wizard closes!
file 525 "C:\....\zz.csv","MB-OK", MsgTypeAlert",1,0,0,501,"WizReport" [OK]
I have attached a partial file sample.
Many thanks for your assistance
BAS
PS as the forum does not accept the extension .csv (!) I have changed it to .txt
Attachments:
zz(ddmmyyyy).txt ‏9 KB

Similar Messages

  • How to convert server specific date string into client specific date object

    Hi developers,
    I have a very complex issue to convert the server date string format "EEE MMM dd HH:mm:ss z yyyy" into java.util.Date object and find the difference of the client machine date to represent the elapsed time
    The problem is the server time zone and client time zone are not unique and when I try to covert the server date which is in string format to date format using SimpleDateFormat class , I got the server time as 3:30 hours appended to it. The server time zone is in IST and Client time zone format is GMT+5:30 , the appended time of 3:30 hours created the confusion in calculating the elapsed time between the server started time and client requested time
    I went through all the sites but none of them were useful
    If any help to solve the above issue is appriciated
    please send the response with the same subject line
    Advance Thanks

    Why don't you just subtract from the server time the 3:30 hours (consult api of java.util.date) before comparing with the client date? Hard to see where's the problem...

  • ERROR [HY000] [DataDirect][ODBC Progress OpenEdge Wire Protocol driver][OPENEDGE]Invalid date string (7497) (pgoe1022.dll)

    I am selecting data from a Progress database using the Data Direct Open Edge 10.1.B driver. The target table stores the date values as varchar in this format "22-OCT-14" In the select statement I can use Progress statements or T-SQL to transform
    the varchar to a date - but cannot do the same in the WHERE clause 
    Select po_number, cast(po_date as date) as [po_date] from [po_table] 
    (no problem - the [po_date] field stored as "22-OCT-14" is returned as "2014-10-22 00:00:00"
    but when I include the cast in the where clause I get the error described in the title
    Select [po_number], [po_date] from [po_table WHERE cast([po_date] as date)<= '10/22/2014' - NO GOOD
    I have tried very many combinations of the date string format , different functions and sub-queries but cannot find an answer

    The sql strings I posted are working examples - I've tried the ISO format you included - any number of date formats will work when the target field is a "Date" field - but trying any kind of transform statment to processa date stored
    as a varchar in the WHERE CLAUSE throws the erro
    Storing dates in a varchar column is a bad idea on any platform. Apparently there are strings in that column which cannot be converted to dates.
    On SQL Server you could have found this with
    SELECT po_date FROM po_table WHERE isdate(po_date) = 1
    What you should use on Progress, I have no idea.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Derby Date search format?

    Hi
    I'm using derby with my application. And problem is that when i search database with date every format its fine except '7/18/07' ( mm/dd/yy). it gives no result.
    e.g.
    select * from table where Date between '6/18/2007' and '7/18/2007'
    its fine and give the result like 2007/18/7...
    but when i search like
    select * from table where Date between '6/18/07' and '7/18/07'
    there is no result.
    how can i do that and how can i change the outcome from 2007/18/7 to 7/18/2007.
    When inserting date i want to change the format from mm/dd/yyyy to dd/mm/yyyy or dd/mm/yy.
    Any tips i will be greatfull.

    how can i do that and how can i change the outcome from 2007/18/7 to >7/18/2007.See formatDate method
    When inserting date i want to change the format from mm/dd/yyyy to >dd/mm/yyyy or dd/mm/yy.See parseDate method.
    import java.text.DateFormat;
    import java.text.SimpleDateFormat;
    import java.util.Date;
    public class Utils{
         public static String DEFAULT_DATE_FORMAT="yyyy-mm-dd";
         public static String formatDate(Date date, String format, String errorDate){
              try {
                   DateFormat formatter = new SimpleDateFormat(format);
                   return formatter.format(date);
              } catch (Exception e) {
                   e.printStackTrace();
                   return errorDate;
         public static Date parseDate(String dateString, String format, Date errorDate){
              try {
                   DateFormat formatter = new SimpleDateFormat(format);
                   return formatter.parse(dateString);
              } catch (Exception e) {
                   e.printStackTrace();
                   return errorDate;
    }Hope That Helps

  • Non US date format within Workspace and Guides

    Is is possible to change the date format displayed within the workspace and Guides to a non US date format?
    This really is a show stopper for us as our standard date format is DD/MM/YYYY and the forms won't be usable for our staff if they are not in this format.

    For Workspace, the date format strings are provided in the localized resource swfs so if you need to change them, can either update the resource swf in question, or possibly provide a new one for the locale you really want to service.  The shipping english swf is named workspace_rb_en_US.swf so maybe you want to provide another one with a different en_XX suffix.  The Workspace source is shipped with the product and I think the Customizing Workspace doc explains how to do this.  The ES2 version of the doc may not be ready yet, but the ES version should explain the concepts.  You may need a hotfix to get the proper ant scripts to build it, but you would have to check with support on this.

  • Convert String to Date and Format the Date Expression in SSRS

    Hi,
    I have a parameter used to select a month and year  string that looks like:    jun-2013
    I can convert it to a date, but what I want to do is,  when a user selects a particular month-year  (let's say "jun-2013")
    I  populate one text box with the date the user selected , and (the challenge Im having is)  I want to populate a text box next to the first text box with the month-year  2 months ahead.    So if the user selects 
    jun-2013   textbox A will show  jun-2013 
    and textbox B will show  aug-2013..
    I have tried:
    =Format(Format(CDate(Parameters!month.Value  ),  
    "MM-YYYY"  )+ 2  )   -- But this gives an error
    This returns the month in number format   like "8"    for august...
    =Format(Format(CDate(Parameters!month.Value  ), 
    "MM"  )+ 2  )
    What is the proper syntax to give me the result    in this format =  "aug-2013"  ???
    Thanks in advance.
    MC
    M Collier

    You can convert a string that represents a date to a date object using the util.scand JavaScript method, and then format a date object to a string representation using the util.printd method. For more information, see:
    http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.1254.html
    http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.1251.html
    In your case, the code would be something like:
    var sDate = "2013-01-10";
    // Convert string to date
    var oDate = util.scand("yyyy-mm-dd", sDate);
    // Convert date to new string
    var sDate2 = util.printd("mm/dd/yyyy", oDate);
    // Set a field value
    getField("date2").value = sDate2;
    The exact code you'd use depends on where you place the script and where you're getting the original date string, but this should get you started.

  • Convert a date in String format to a Date

    Hi,
    How can I convert a date in String format to a Date object?
    I have tried:
    import java.text.*;
    import java.io.*;
    import java.util.Date;
    import java.util.Locale;
    import java.sql.*;
    public class casa {
    public static Connection con = null;
    public static Statement s = null;
    public static String sql = null;
    public static String mydate = "01.01.2001";
    /** Creates a new instance of casa */
    public casa() {
    public static void main(String[] args) throws SQLException{
    try {
    DateFormat shortFormat = DateFormat.getDateInstance(DateFormat.SHORT);
    Date date = shortFormat.parse(mydate);
    //Open Database
    con = getConnection();
    s = con.createStatement();
    sql = "select date1 from table1 where date1 <= '"+date+"'";
    ResultSet rs = s.executeQuery(sql);
    while(rs.next()){
    String aba = rs.getString("datum");
    System.out.println("New Datum = "+aba);
    } catch (Exception ex ) {
    ex.printStackTrace();
    closeConnection(s, con);
    //Connection
    private static Connection getConnection() {
    Connection con = null;
    String user ="aouzi";
    String passe ="aouzi";
    String url = "jdbc:db2:EjbTest";
    try {
    //Datenbanktreiber laden
    Class.forName("COM.ibm.db2.jdbc.app.DB2Driver");
    //Verbindung herstellen
    con = DriverManager.getConnection(url,user,passe);
    }catch(ClassNotFoundException e){
    } catch(SQLException e){}
    return con;
    //close Connection
    private static void closeConnection(Statement s, Connection con) {
    try {
    s.close();
    } catch (SQLException e) {}
    try {
    con.close();
    } catch (SQLException e) {}
    I'm getting the following errors:
    COM.ibm.db2.jdbc.DB2Exception: [IBM][CLI Driver][DB2/NT] SQL0180N
    The syntax of the representation of a date/time of day value as character sequence is false. .SQLSTATE=22007

    I'm pretty sure it won't understand what date.toString() returns. If you know what format the database understands, you do it like this:
    SimpleDateFormat sdf = new SimpleDateFormat("dd-MMM-yy"); // e.g. 18-Apr-02
    String datestring = sdf.parse(date);
    and use that instead of date in your sql string. Some databases understands it if you do
    "to_date('18-Apr-02')"
    so you could include that in your sql string as well..
    You could also try to make it a java.sql.Date and hope your jdbc driver knows how to convert it to a string that the database understands if you don't know the format:
    con = getConnection();
    PreparedStatement ps = con.prepareStatement("select date1 from table1 where date1 <= ?");
    ps.setDate(new java.sql.Date(date.getTime()));
    ResultSet rs = s.executeQuery(sql);

  • How to convert BLOB data into string format.

    Hi,
    I have problem while converting blob data into string format.
    for example,
    Select dbms_lob.substr(c.shape.Get_wkb(),4000,1) from geotable c
    will get me the first 4000 byte of BLOB .
    When i using SQL as i did above,the max length is 4000, but i can get 32K using plsql as below:
    declare
    my_var CLOB;
    BEGIN
    for x in (Select X from T)
    loop
    my_var:=dbms_lob.substr(x.X,32767,1)
    end loop
    return my_var;
    I comfortably convert 32k BLOB field to string.
    My problem is how to convert blob to varchar having size more than 32K.
    Please help me to resolve this,
    Thanx in advance for the support,
    Nilesh

    Nilesh,
    . . . .The result of get_wkb() will not be human readable (all values are encoded into some binary format).
    SELECT utl_raw.cast_to_varchar2(tbl.geometry.get_wkt()) from FeatureTable tbl;
    -- resulting string:
        ☺AW(⌂özßHAA
    Å\(÷. . . .You may also want to have a look at { dbms_lob | http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_lob.htm#i1015792 } "The DBMS_LOB package provides subprograms to operate on BLOBs, CLOBs, NCLOBs, BFILEs, and temporary LOBs."
    Regards,
    Noel

  • Date Difference between two dates which is in String format - Urgent

    Hi,
    My requirement is
    String s1 = "04/24/2008" ; // in "mm/dd/yyyy" format
    String s2 = "08/30/2010" ; // in "mm/dd/yyyy" format
    Now i want to calculate the number of days between the two Strings(Dates).It's urgent.Please help me.

    A late entry:
    If you want to turn a String into a Date, use SimpleDateFormat.
    [Calculating Java dates: Take the time to learn how to create and use dates|http://www.javaworld.com/jw-12-2000/jw-1229-dates.html]
    [Formatting a Date Using a Custom Format|http://www.javaalmanac.com/egs/java.text/FormatDate.html]
    [Parsing a Date Using a Custom Format|http://www.javaalmanac.com/egs/java.text/ParseDate.html]

  • Date Problem-adding 30days to the date in string format.

    hi i have an Date in the form of String "yyyy-mm-dd",i have to add 30 days to that date and compare it with to days date,i try to convert the string in to date format using SimpleDateFormat,but i could not understand how to add 30 days to that.pl it's an urgent problem,any help would be appreciated.
    Regards.

    to compare the date to todays date,
    Calendar todaysDate = Calendar.getInstance();
    todaysDate.after(cal2);
    todaysDate.before(cal2);
    Depending on which way you want to know.
    To get the String Format I would suggest something like :
    String dateInString = "" + cal2.get(Calendar.YEAR) + "-" + cal2.get(Calendar.MONTH) + "-" + cal2.get(Calendar.DATE);
    Be careful though as this may give a format YYYY-M-D if the month or date is a single digit, so you may have to test string.length and then have "0"+cal2.get(Calendar.MONTH) /cal2.get(Calendar.DATE)
    Hope this is of some help.

  • How do I convert an 8 bit serial data string I have received (say 01110101) into decimal format??

    I am having a hard time finding a function that will help me convert an 8 bit serial data string I have received (say 01110101) into decimal format.

    When you have your front panel displayed, you should a whole palette of controls that you can place on the front panel. If the palette is not displayed, thne just right click on your mouse and it should appear. The upper left most set of controls on the palette is Numeric. Go there and select Numeric Indicator to display a numeric output. On the diagram, you can also right click the output 1 and select Create>Indicator. The format string is %b (as in boy) for a binary string. As I said, this should be the value for the format string input. You can right click on the Scan From String and select Edit Scan String. This will bring up a dialog box in which you pick what you want to do (Scan Number) and how you want to do it (Scan Binary Integer
    It sounds like you really need to take a course in LabVIEW programming. There are are links here to NI classes and some on-line tutorials.

  • Non-numeric String formatting

    Ok, I understand about numeric string formating (NumberFormat). But what I need help with is string formatting.
    For example, I'm working on an app with fixed-length records. Let's take a name field. I need the string "John Doe" formatted to a 40-character field, right-justified. Can someone point me to a class or a URL with information on this.
    Sorry for asking such an elementary question.

    Ok, I understand about numeric string formating
    (NumberFormat). But what I need help with is string
    formatting.
    For example, I'm working on an app with fixed-length
    records. Let's take a name field. I need the string
    "John Doe" formatted to a 40-character field,
    right-justified. Can someone point me to a class or a
    URL with information on this.In the JDK I found nothing, but in the jakarta-Projekt of apache.org:
    http://jakarta.apache.org/commons/lang.html
    There is a class called StringUtils.
    You only have to write:
    String rightJustified = StringUtils.rightPad("John Doe", 40);
    If you don't find something in the JDK look at Jakarta. They have a lot of useful stuff.

  • Inputing dates in non-US date format

    I know this is an old issue, but I could not find it resolved in the discussions and threads had been closed:
    I cannot figure out how to input dates using my preferred format mm/dd/yy (or dd.mm.yy, or even dd.mm.yyyy) despite having set it up that way in system preferences>international (using Irish, UK, or whatever settings).
    This occurs in Address Book where I try to input Birthdays (which I want included in iCal). It appears to want to make everything the current year and month (if dd>12 which makes it confused about dd or mm) or (if dd>=12) it assumes you are entering mm/dd/yy (contrary to my settings in System Preferences). The only way I have found around this problem is to write birthdays out in "long hand" (e.g. 31 May 1935)... Oddly if you give it something like 3/2/12 it will make it 2 March 2012 (rather than 3 February 1912 as intended). Which would be unlikely to say the least...
    Definitely not the kind of problem I would expect from MacOS!
    MacBook Mac OS X (10.4.7)
    MacBook   Mac OS X (10.4.6)  

    To customize the date (and any other format) to your particular preference, go to System Preferences; select International; select Formats. In the Dates section, select Customize. A pane will appear with Show:. From here you can select Short, Medium, Long or Full.
    As an example, I use Medium for my Mail using the dd mm yy format. To make this display, you simply move (rearrange) each of the elements of the day/month/format to your particular choice. You can insert any divider between each of these elements (I use a space).
    If you prefer the truncated Julian Date (yyD) format (for specific message/signals processing), simply delete the existing elements from the format line, and drag and drop a date element from the table below the element format line. For Julian Date, I selected Year and then Day of Year (without a space). I then modified the Year format by clicking on the Year element, which then displays a white chevron to right of the numeral. Click on the white chevron and several format options are available. Click your prefered option. Repeat the same process for Day of Year element.
    When you are satisfied, click OK.

  • Encoding Problem: non-Unicode Data to Unicode format of XI

    Hi SDN,
    I have a JDBC sender to SAP BW scenario. The database is MS SQL server. 
    The code page of db CP1CIAS
    Description:SQL Server Sort Order 52 on Code Page 1252 for non-Unicode Data
    Some fields with values like <b>ZAK&#x0;ADY TWORZYW SZTUCZNYCH</b> are failing in XI Mapping with error
    <b>Fatal Error: com.sap.engine.lib.xml.parser.Parser~
    XMLParser : #0 not allowed in Character data sections
    in the trace.</b>
    Please help how should i get over this code page errors. By installing this code page on XI server help?

    There is no such global setting, this is b/c your source has Unicode I trust, and the only one other thing to try would be this:
    Arthur My Blog

  • How to check the current time with a Stored  time in string format

    Hi All
    I would like to compare the system time with an existing time values which is allready there in String format..
    i mean i would like to check if the SysTime is inbetween 6:30 and 14:00
    I accomplished this in Oracle ..
    Select 'Y' from dual where to_date(to_char(sysdate,'HH24:MI '),'HH24:MI') between to_date('06:30','HH24:MI') and to_date('14:00','HH24:MI')
    But instead of checking the DB each and every time , the perfomance would be better if we can do this in our java code..
    Could some one provide me with a code to accomplish the above scenario..
    Thanks in advance..,.,

    import java.util.Calendar;
    Calendar rightNow = Calendar.getInstance();  // gets the current date and time to millisec
    Calendar earlyTime = Calendar.getInstance().set(Calendar.HOUR_OF_DAY, 6).set(Calendar.MINUTE, 30);
    Calendar lateTime = Calendar.getInstance().set(Calendar.HOUR_OF_DAY, 8).set(Calendar.MINUTE, 0);
    if (rightNow.compareTo(earlyTime)> 0 && rightNow.compareTo(lateTime) < 0){
    // do something
    }Try this.

Maybe you are looking for

  • TX2616au touch screen doesn't work after upgrading to windows 7

    Hi, I just got my TX 2616AU multi-touch tablet few days, it came with Windows Vista ,and the WACOM touch screen worked perfectly, by the pen and my finger as well. I got a Windows 7 Ultimate and decide to upgrade the system. The upgrading process was

  • How to make different forms available based on user responses

    I have created 4 fillable application forms in Adobe Acrobat 9 Standard. First time using this product. Boss wants a dynamic form, so that if a user answers Yes to a question in Form A, then Form B is automatically inserted into Form A for the user t

  • Regarding SM19 filter Criteria.

    Hi Experts, I have configured SM19 filters for DDIC, SAP* & GSUPER1 (master users) and i have checked all the AUDIT CLASSES and Security level and security level as LOW. I have written a program to send an SD ticket when there was a critical transact

  • Change Access to user for all BPs in region & Display access to BPs in Grp

    Hello We have a 2 requirements: - Restrict access to a BP based on Sales Organizations(Maintained in AUGRP of BUT000) - In addition to above access, provide access on BP based on some logical groupings of BP Ex. Provide Update access to a user for al

  • Embedded BI - Reporting Functionalities and Performances

    Hi, there are Reporting functionalities that are available only for Embedded BI/external BI or they are the same? IMPORTANT: there are differencies in Reporting on ERP Tables with Virtual Infocube use if BI is embedded/not embedded?  There are differ