SQL Date Format question

Hello,
The date format in an Access database is "Date Time" (
1/8/2008 6:14:34
AM ). It's a required format for some functions.
I need to group product orders by date for a simple revenue
summary page.
As the time part of the date is different for all orders,
trying to group
all orders by one date ( 1/8/2008 for example ) won't work.
It results in:
1/8/2008 6:14:34 AM $30.00
1/8/2008 7:50:23 AM $20.00
I need it to be:
1/8/2008 $50.00
I've tried convert and datetime but am having some kind of
brain cramp I
think and can't get it to work.
The base SQL is:
SELECT order_Date, Sum(order_Total) as TotalAmt FROM
OrderDetails
GROUP BY order_Date
Usage:
<% While ((Repeat1__numRows <> 0) AND (NOT
Recordset1.EOF)) %>
<td><%= Recordset1("order_Date") %></td>
<td><%= Recordset1("TotalAmt") %></td>
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Recordset1.MoveNext()
Wend
%>
Any ideas are appreciated.
Take care,
Tim
Take care,
Tim
www.bestbabystuffonline.com

Hi Baxter,
I will be summing the totals, but I haven't added that yet.
The date format was the big hurdle.
I just have to figure out how to format the date back to
mm/dd/yyy in the
repeat region on the page now.
It's coming out of the rs as yyyy/mm/dd
<%=Recordset1("orderDate")%>
I'm thinking I'll need to set up a function to format the way
orderDate
displays.
<%=FriendlyDate(Recordset1("orderDate"))%>
But, time for a break. Thanks again for the ideas.
Take care,
Tim
"Baxter" <baxter(RemoveThe :-)@gtlakes.com> wrote in
message
news:[email protected]...
>I also thought that you were Summing the totals from the
order that the
>item
> was placed at a different time or is the sum the total
from just one time
> stamp?
> SELECT order_Date, Sum(order_Total) as TotalAmt FROM
OrderDetails
> GROUP BY order_Date
>
> "TC2112" <[email protected]> wrote in message
> news:[email protected]...
>> I got it to group and order correctly with this:
>>
>> "SELECT FORMAT(order_Date, 'yyyy/mm/dd') AS
OrderDate FROM
> cwq_OrderDetails2
>> GROUP BY FORMAT(order_Date, 'yyyy/mm/dd') ORDER BY
FORMAT(order_Date,
>> 'yyyy/mm/dd') DESC"
>>
>> All three had to have the same format (there was the
brain cramp).
>>
>> It takes this data:
>>
>> 1/8/2008 6:14:34 AM
>> 1/8/2008 7:50:23 AM
>> 1/10/2008 8:50 AM
>> 1/9/2008 9:01 AM
>>
>> and shows it in the recordset as:
>>
>> 2008/01/10
>> 2008/01/09
>> 2008/01/08
>>
>>
>> Which is perfect. It's gouped and ordered
descending..
>>
>> Now all I need to do is change the display format on
the page to
> mm/dd/yyyy
>> here:
>>
>>
>> <%=Recordset1("orderDate")%>
>>
>> Thanks again,
>>
>> Tim
>>
>>
>> "Baxter" <baxter(RemoveThe :-)@gtlakes.com>
wrote in message
>> news:[email protected]...
>> > Do you have a order_number field in the
database you could
>> > GROUP BY order_number
>> > Dave
>> > "TC2112" <[email protected]> wrote in
message
>> > news:[email protected]...
>> >> Hi Baxter,
>> >>
>> >> That allows for the correct format to be
displayed, but it's the
>> >> format
>> >> in
>> >> the recordset that needs to be set at just
the date so it can be
> grouped.
>> >>
>> >> I'm pretty close with this:
>> >>
>> >> "SELECT FORMAT(order_Date, 'mm/dd/yyyy') AS
OrderDate FROM
>> >> tblOrderDetails
>> >> ORDER BY FORMAT(order_Date, 'yyyy/mm/dd')
DESC"
>> >>
>> >> It returns
>> >>
>> >> 1/10/2008
>> >> 1/9/2008
>> >> 1/8/2008
>> >> 1/8/2008
>> >> 1/8/2008
>> >>
>> >>
>> >> Now I just need to figure out the GROUP BY
in the SQL to return this:
>> >>
>> >> 1/10/2008
>> >> 1/9/2008
>> >> 1/8/2008
>> >>
>> >> GROUP BY order_Date doesn't work as
order_date in the DB contains the
>> >> minutes.
>> >> GROUP BY FORMAT(order_Date, 'mm/dd/yyyy')
throws an error.
>> >>
>> >> Thanks for the ideas :-)
>> >>
>> >> Tim
>> >>
>> >>
>> >>
>> >>
>> >> "Baxter" <baxter(RemoveThe
:-)@gtlakes.com> wrote in message
>> >> news:[email protected]...
>> >> > Try this, open the Bindings panel and
select the date field in the
>> >> > recordset
>> >> > then to the right
>> >> > of the panel you will see a column
header called format on the right
>> > side
>> >> > of
>> >> > the panel ( if you cant see it expand
the panel box) click the
> dropdown
>> >> > arrow and pick the date format you
want to display on the page from
> the
>> >> > Date/Time selections.. Hope this helps
you.
>> >> > Dave
>> >> >
>> >> > "TC2112" <[email protected]>
wrote in message
>> >> >
news:[email protected]...
>> >> >> Hi Baxter,
>> >> >>
>> >> >> I need to keep the current Date
Time format in the database table
>> >> >> as
>> > some
>> >> >> other functions need the long
format.
>> >> >>
>> >> >> I'm just trying to format to short
date in the recordset so I can
>> >> >> group
>> >> >> by
>> >> >> it and have any orders, regardless
of time, group in a single date.
>> >> >>
>> >> >> Thanks,
>> >> >> Tim
>> >> >>
>> >> >> "Baxter" <baxter(RemoveThe
:-)@gtlakes.com> wrote in message
>> >> >>
news:[email protected]...
>> >> >> > In your order_Date field in
the database design view set the
> format
>> > to
>> >> >> > Short
>> >> >> > Date Default Value Now()
>> >> >> > That should work for you.
>> >> >> > Dave
>> >> >> > "TC2112"
<[email protected]> wrote in message
>> >> >> >
news:[email protected]...
>> >> >> >> Hello,
>> >> >> >>
>> >> >> >> The date format in an
Access database is "Date Time" ( 1/8/2008
>> >> >> >> 6:14:34
>> >> >> >> AM ). It's a required
format for some functions.
>> >> >> >>
>> >> >> >> I need to group product
orders by date for a simple revenue
> summary
>> >> > page.
>> >> >> >> As the time part of the
date is different for all orders, trying
> to
>> >> > group
>> >> >> >> all orders by one date (
1/8/2008 for example ) won't work.
>> >> >> >> It results in:
>> >> >> >>
>> >> >> >> 1/8/2008 6:14:34 AM
$30.00
>> >> >> >> 1/8/2008 7:50:23 AM
$20.00
>> >> >> >>
>> >> >> >> I need it to be:
>> >> >> >>
>> >> >> >> 1/8/2008 $50.00
>> >> >> >>
>> >> >> >> I've tried convert and
datetime but am having some kind of brain
>> > cramp
>> >> > I
>> >> >> >> think and can't get it to
work.
>> >> >> >>
>> >> >> >> The base SQL is:
>> >> >> >>
>> >> >> >> SELECT order_Date,
Sum(order_Total) as TotalAmt FROM
>> >> >> >> OrderDetails
>> >> >> >> GROUP BY order_Date
>> >> >> >>
>> >> >> >> Usage:
>> >> >> >>
>> >> >> >> <% While
((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF)) %>
>> >> >> >>
>> >> >> >> <td><%=
Recordset1("order_Date") %></td>
>> >> >> >> <td><%=
Recordset1("TotalAmt") %></td>
>> >> >> >>
>> >> >> >>
Repeat1__index=Repeat1__index+1
>> >> >> >>
Repeat1__numRows=Repeat1__numRows-1
>> >> >> >> Recordset1.MoveNext()
>> >> >> >> Wend
>> >> >> >> %>
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >> Any ideas are
appreciated.
>> >> >> >>
>> >> >> >> Take care,
>> >> >> >> Tim
>> >> >> >>
>> >> >> >>
>> >> >> >> --
>> >> >> >> Take care,
>> >> >> >>
>> >> >> >> Tim
>> >> >> >>
>> >> >> >>
www.bestbabystuffonline.com
>> >> >> >>
>> >> >> >>
>> >> >> >
>> >> >> >
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >
>>
>>
>
>

Similar Messages

  • Error in SQL Date Format Mask

    Hi,
    I am facing problem in validation data in FDQM.
    When I am trying to validate data,I am getting an error as ' An Error occured.Please verify that SQL Date Format Mask is correct'
    The current Date Format in our application is YYYYMMDD.
    I did not have this problem earlier in validating data.This problem is occuring now only and also this error is coming for few entities only.
    Could any one suggest me on how this can be resolved.
    Thanks

    Hi Kelly,
    I checked periods in control tables and there are no duplicates.
    The Period Date Format Mask is MMM-YYYY where as the SQL Date Format Mask is YYYYMMDD.
    These settings are there since the time I created application.Has it got anything to do with database.
    Appreciate your quick response
    Regards,
    Mrudula

  • Needed help regarding converting  string to java.sql.Date format

    I have a a function which returns a calendar object. The date must be inserted to Oracle DB using java.sql.Date format.
    So i have converted the Calendar object to java.sql.Date format using the following code
    java.sql.Date publicationDate = new java.sql.Date(book.getPublicationDate().getTime().getTime());But while getting inserted into the DB it was in mm/dd/yyyy format whereas i wanted dd/mm/yyyy format
    Can any body please help out how to store the date in dd/mm/yyyy format ?

    Can u please explain this a bit
    This is my code
    public int addBook(List<Book> BookList) throws SQLException, ParseException{
              System.out.println("Hi there");
              Book book = new Book();
              BookDB bookDb = new BookDB();
              //listLength =      BookList.length;
              String bookId = null;
                   try{
                        DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
                        con  = DriverManager.getConnection("jdbc:oracle:thin:@10.123.79.195:1521:findb01","e115314", "e115314");
                        addBook = con.prepareStatement("insert into ABC_Book values(?,?,?,?,?,?,?)");
                        Iterator<Book> iterator = BookList.iterator();
                        while(iterator.hasNext()){
                             book = (Book)iterator.next();
                             System.out.println(book.getBookId());
                             addBook.setString(1,book.getBookId());
                             addBook.setString(2,book.getTitle());
                             addBook.setString(3,book.getAuthor());
                             addBook.setString(4,book.getPublisher());
                             System.out.println(book.getPublicationDate());
                             System.out.println("Before Date");
                             System.out.println("book.getPublicationDate().getTime()"+book.getPublicationDate().getTime());
                             java.sql.Date publicationDate = new java.sql.Date(book.getPublicationDate().getTime().getTime());
                             SimpleDateFormat formatter = new SimpleDateFormat("dd/mm/yyyy");
                             dateString = formatter.format(publicationDate);
                             System.out.println("Today is"+dateString);
                             java.sql.Date date = (java.sql.Date)formatter.parse(dateString);
                             System.out.println("date"+date);
                             //java.sql.Date publicationDate = (Date)book.getPublicationDate().getTime();
                             //System.out.println("Value of date is"+publicationDate);
                             System.out.println("After Date");
                             addBook.setDate(5,publicationDate);
                             addBook.setString(6,book.getCountry());
                             addBook.setString(7,book.getLanguage());
                             rs = addBook.executeQuery();
                             //con.commit();
                             rowCount = rowCount + rs.getRow();
                        return rowCount;
                   catch(SQLException se){
                        se.printStackTrace();
                   finally{
                        con.close();
                        System.out.println("After adding ");
              return 0;
         }

  • SQL date format

    Hi,
    Assume the records in a legacy oracle data base have an attributes called date which has the format as 'Dy DD-Mon-YYYY HH24:MI:SS' (e.g. 21-Apr-1998 21:18:27).
    In my Java application, assume that I provide a GUI for users to input date as
    "DD-MM-YYYY" (e.g. 21-04-1998).
    How can I make a SQL statement to find all records of the date "21-Apr-1998"?
    Regards,
    Pengyou

    Hi,
    I would like to clarify my question
    The oracle table that I have has a date column of the
    format (oracle default one)
    as 'DD-Mon-YYYY HH24:MI:SS' (e.g. 21-Apr-1998
    21:18:27).Just to be sure.....
    The type of the column is "date". It is NOT "varchar", "varchar2", "char" or something else.
    If so then the the column does not have a format. It is value that does not change regardless of format. What you see is the result of an oracle tool (probably sqlplus) converting it to that format.
    And as discussed you use prepared statement.
    However you MUST use a range check since you have a timestamp (not a date) and you want to compare it to a date.
    So the java would look something like this....
      String sql = "select field1 from mytable where adate >= ? and adate < ?";
      SimpleFormatDate dt = ....
      java.util.Date d = dt.parse("...");
      java.sql.Date t1 = new java.sql.Timestamp(d.getTime());
      java.sql.Date t2 = // Use calendar to add one day
      PreparedStatement ps = ...(sql)
      ps.setDate(t1);
      ps.setDate(t2);
      ResultSet rs = ps.executeQuery();Note that you MUST use exclusion and inclusion at either end (">=" and "<"). If you don't then you run the risk of including something twice or excluding something.
    And the above is explained in numerous other posts.

  • Convert a String to java.sql.Date Format

    Hi,
    I am having a String of containing date in the format 'dd/mm/yyyy' OR 'dd-MMM-YYYY' OR 'mm-dd-yyyy' format. I need to convert the string to java.sql.Date object so that I can perform a query the database for the date field. Can any one suggest me with the code please.
    Regards,
    Smitha

    import java.text.SimpleDateFormat;
    import java.text.ParseException;
    import java.util.Date;
    public class TestDateFormat
         public static void main(String args[])
              SimpleDateFormat sdf = new SimpleDateFormat("dd-MM-yyyy");
              System.out.println(sdf.isLenient());
              try
                   Date d1 = sdf.parse("07-11-2001");
                   System.out.println(d1);
                   Date d2 = sdf.parse("07:11:2001");
                   System.out.println(d2);
              catch(ParseException e)
                   System.out.println("Error format, " + e);
    See class DateFormat and SimpleDateFormat for detail.

  • Converting String foramt(yyyy-mm-dd) to java.sql.Date format(mm/dd/yyyy)

    Hi,
    I am new to this Technology.
    in my Project DataBase I have the date field as String in format yyyy-mm-dd. when I am trying to fetch this date through the front-end I need to see the date in dd/mm/yyyy format of type java.sql.Date Variable.
    if you know, Pl help me.
    Thanks in Advance,
    Kamala.

    Then use a SimpleDateFormat object to parse it into a Date object, and also to format the Date the way you want to see it, rather than simply relying on the toString() implementation.

  • SQL date format dd/mm/yy

    Hi,
    I've already searched for this question, and tried the code in the answers given, but I still can't get it to work.
    I'm trying to display the current date in the format dd/mm/yy, with no time.
    Here is the code I've tried so far:
    --set dateformat dmy
    DECLARE @today as date
    --set @today = CONVERT(date, getdate()) as [dd/mm/yy]
    set @today = CONVERT(VARCHAR(10), GETDATE(), 103) AS [DD/MM/YYYY]
    print @today
    The commented out lines are previous attempts. When I run the code as it is above, I get the following error message:
    Incorrect syntax near the keyword 'AS'.
    DECLARE @today as date
    set @today = CONVERT(date, getdate())
    set dateformat dmy
    The code above results in:
    2012-06-06
    but I need the format to be 06-06-2012.
    Thanks

    Good day 
    I hope that you are still here and read this, since there is a basic reason for the error that you got in the start. and i dont see anyone mentioned it. The idea is not just to copy a solution that someone give you but to understand :-)
    I hope this is  abit useful
    >> When I run the code as it is above, I get the following error message:Incorrect syntax near
    the keyword 'AS'.
    The reason for the error in the first code that you post has nothing to do with the date or date format. It is raising since you tried to use SET parameter and you used "as ...". this is not a select query and you can not use this format: "SET
    @X = ... as name"
    * You use the CONVERT style parameter(103 in your case),
    during the display format for example when you convert it to string (the select query), but in your case you print the date in the end without any specific display style, and therefore it is printed as your current configuration.
      Ronen Ariely
     [Personal Site]    [Blog]    [Facebook]

  • Xquery date formatting question

    We are experiencing strange behavior of some xquery functions. I am wondering we are doing something wrong or that there is a bug in the xquery functions.
    When we execute the following xquery:
    fn:current-dateTime()
    it returns:
    2007-01-30T[b]09:51:24.843+01:00
    and when we execute the below xquery
    fn-bea:dateTime-to-string-with-format("yyyyMMddkkmmssSSS",fn:current-dateTime())
    it returns:
    20070130[b]085053645In this example the shocking part is the underlinded/bold part, ie the hour of the day. When we use the first query it returns the correct time and when we use the xquery to also format the current-dateTime it returns the current time minus one hour.
    Does anyone have an idea whether we are doing something wrong?

    You should use getDate() to retrieve your date value from the ResultSet as a java.sql.Date object.
    Then use a SimpleDateFormat in the JSP to format your date.

  • Problem in converting util date format to sql date format

    im trying to convert util date to sql date...i'm getting the error msg as
    Error is : java.lang.NullPointerException
    Error Message : null
    i'm not bale to track the result...whatz the problem with this code?
    This fromDate value will be dynamically built, value will be
    fromDate="Tue Jul 15 00:00:00 IST 2003";
    java.util.Date xx=util.stringToDate(fromDate);
    java.sql.Date sqlD=null;
    sqlD.setTime(xx.getTime());
    System.out.println("sqld"+sqlD);

    I try this and it works:
    SimpleDateFormat simpledateformat = new SimpleDateFormat("EEE MMM dd HH:mm:ss z yyyy", Locale.UK);
    String s = "Tue Jul 15 00:00:00 IST 2003";
    java.util.Date date = simpledateformat.parse(s);
    java.sql.Date sqlD=new java.sql.Date(date.getTime());
    System.out.println("sqld"+sqlD);
    Hope this helps.

  • SQL DATE FORMATS INTERCHANGED

    Hi ,
    Pls find below details abt the issue:
    one of the column in a tablecontains date format in 2 different ways.
    acct_create_date column is varchar2 datatype
    acct_create_date 20041231093030 yyyymmddhhmiss
    20041030162525
    28281230112004 ssmihhddmmyyyy
    24241028102004
    these r the two different formats a column contains in a table. our objective is to get all the dates to consistent format like
    yyyymmddhhmiss.
    can anyone suggest ways to do it ...
    Thanks in advance

    I hope that the intention is to convert the column into a date datatype, so you won't have to go through this pain again!
    Is there another column which determines what format the date is in, or can be used to derive the format?
    If I were you, I'd knock up two functions, one for each format, and use that to test each result to see if it will successfully convert to a date or not. That way, the majority should be easy to spot which format they're in, and hopefully only a few will be dates in both formats - you'd have to go through those cases manually to see if you can work out what the format should be. You'd also have to limit the range of years in your function.
    eg.
    select date_col, to_ymdhms(date_col), to_smhdmy(date_col)
    from my_tab
    where to_ymdhms(date_col) is not null
    and to_smhdmy(date_col) is not null;

  • Business One date format question

    Hi,
    Business One formats dates coming out of the database as specified by the user.  But it looks like, when you set a date variable in your program code to the value coming out of the database and you set an edit text value to that variable, Business One doesn't format it.  Am I right?  I have a solution but I just want to make sure that there isn't something I'm missing.  I'm using VB .NET 2005.
    Thanks,
    Mike
    Edited by: Mike Angelastro on Jan 21, 2010 12:44 PM

    Vasu,
    Thanks for your suggestion.  I followed it but it doesn't seem to work.  The format appears to be more consistent with the machine's data format instead of what was specified in the general settings.  Here is my code:
    oDetailForm.DataSources.UserDataSources.Add("dsDueDate", SAPbouiCOM.BoDataType.dt_DATE)
    oEditText.DataBind.SetBound(True, , "dsDueDate")
    If Year(DueDate) > 1901 Then
             oEditText.Value = DueDate  'Format(DueDate, SystemDateFormat)
    Else
             oEditText.Value = "N/A"
    End If
    Is my code correct?
    Thanks again,
    Mike

  • JFileChooser and date format questions

    I have a JFileChooser that currently works - I set the default directory and allow the user to select a file or enter a file name.
    I have been asked to modify this to prepopulate the file name field on the JFileChooser.
    How do I do that? It is not obvious which method to call to set the filename field.
    Also, the file name needs to be a timestamp "*yyyyMMddHHmmss*.dat"
    I tried creating the timestamp part with the following code, but it does not format as expected.
            String s = "";
            SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMddddHHmmss");
            try
                java.util.Date now = new java.util.Date();
                java.util.Date dat = dateFormat.parse( now.toString() );
                s = dat.toString();
            }What is wrong with this?
    Thanks.

    I don't do Swing and this is also not the subforum for Swing questions. It has its own subforum.

  • Yet another string to date format  question

    I have searched the forums and cannot find the exact answer I am looking for so here goes.
    SimpleDateFormat sdf = new SimpleDateFormat("M/d/y");
    String strDate = "02/25/04";
    Date myDate = sdf.parse(strDate);
    gives me : Wed Feb 25 00:00:00 EST 2004
    but I need the output of myDate to stay 02/25/04 in order to add the date object to a sql query.
    strDate will come from request.getParameter variable.
    Any help would be greatly appreciated.

    >
    This will only work if I return the value as a string,
    which puts me back right where I started. I simply
    cannot get the formatted value Wed Feb 25 00:00:00 EST
    2004 to return as a Date object 02/25/04. Is this
    possible? When using SQL, as stated above use a PreparedStatement.
    Use the setDate/setTimestamp/setTime methods to put it into the database.
    Use getDate/getTimestamp/getTime to get it out.
    The 'Date' classes do NOT store anything as "02/25/04". They store milliseconds since the epoch in UMT (Universal Mean Time = Greenwich Mean Time.) That is all they store.
    When you display a 'Date' instance it is converted to a display format. You can use SimpleDateFormat to create any display format that you want.

  • Time Zone Offset - Date Format question

    I'm wondering if any one knows how to display the time zone offset of a date in the following format "[+-]HH:mm." More so... I need the date/time in the ISO 8601 format "yyyy-MM-dd'T'HH:mm:ss[+-]HH:mm", where the last [+-]HH:mm is the hour representation of the offset. Here's some sample code...
    SimpleDateFormat sdf1 = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
    Calendar rightnow= Calendar.getInstance();
    // So if system date/time is February 14, 2002 at 1:15:00 PM EST, this would produce "2002-02-14T13:15:00"
    System.out.println("Current Datetime" + sdf1.format rightnow.getTime());
    How can I get the timezone offset appended to my output in a [+-]HH:mm format. So, the above date needs to look like "2002-02-14T13:15:00-05:00". I can get the offset in milliseconds by doing the following:
    int offset1 = rightnow.get(rightnow.ZONE_OFFSET) + rightnow.get(rightnow.DST_OFFSET);
    But how can you get this representation into the [+-]HH:mm format?
    thanks in advance,
    stophman

    Try something like this:import java.text.* ;
    import java.util.* ;
    static public String formatISO8601(Calendar cal) {
         * create ISO 8601 formatter for Calendar objects
        MessageFormat iso8601 = new MessageFormat("{0,time}{1,number,+00;-00}:{2,number,00}") ;
        // need to shove a date formatter that is cognizant of the
        // calendar's time zone into the message formatter
        DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss") ;
        df.setTimeZone(cal.getTimeZone()) ;
        iso8601.setFormat(0, df) ;
         * calculate the time zone offset from UTC in hours and minutes at the current time
        long zoneOff = cal.get(Calendar.ZONE_OFFSET) + cal.get(Calendar.DST_OFFSET) ;
        zoneOff /= 60000L ;  // in minutes
        int zoneHrs = (int) (zoneOff / 60L) ;
        int zoneMins = (int) (zoneOff % 60L) ;
        if (zoneMins < 0) zoneMins = -zoneMins ;
        return (iso8601.format(new Object[] {
                                    cal.getTime(),
                                    new Integer(zoneHrs),
                                    new Integer(zoneMins)
    }

  • Ms sql date format is coming as oracle.sql.TIMESTAMP

    Hi,
    Instead of getting the date as mm-dd-yy i am getting the dates in ms sql as below. Can someone pls advise how to rectify this.. Thanks
    oracle.sql.TIMESTAMP@16dcbc9
    oracle.sql.TIMESTAMP@15e3974
    oracle.sql.TIMESTAMP@10e0904
    oracle.sql.TIMESTAMP@721e92

    Rectify what?
    No Oracle database version number?
    Where is the table's DDL or description?
    No idea what you are getting the date from ... is it MS SQL across a heterogenous link or a .NET app?
    No idea what tool you are using ... SQL*Plus or TOAD or Excel with ODBC
    If you want help you need to provide sufficient information such that the person trying to help you understands what is actually happening.
    Try as I might I can not look through my monitor and see yours. ;-)

Maybe you are looking for

  • Where can i download a print driver for an hp laserjet 4mv?

    I just bought a new iMac, and I can't seem to find a driver for my HP LaserJet 4MV (which still works great!) anywhere on the HP site. Does anyone know where I might be able to download this from?

  • Function used in web dynpro java application

    Hi I am creating some application in web dynpro java by using ABAP function module and table. I am trying to put data to table and update data in table and delete data in table in my application by using ABAP function by using RFC. And this is the AB

  • Lost all Address Book entries

    All of a sudden I've lost all my Address Book entries. There's nothing there. I use iBackup onto .Mac, but for some reason I can't get it to restore. It keeps saying that backup fails. Please help. Big problem.

  • My Itunes won't open when I click on the program.

    My Itunes won't open when I click on the icon/program. It will flash like it's going to open on the bottom bar on windows 7 but then doesn't do anything, I have tried deleting it and redownloading it, however this still hasn't done anything. What can

  • How do i keep the window visible on top

    I'm watching videos and want them to stay 'on top' of all other windows as I switch between applications...like word to explorer to safari to google...I want to keep my video playing visible on 'top' of all other windows.