Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for toSqlDate (0.12 sec)

  1. src/test/java/org/codelibs/core/convert/DateConversionUtilTest.java

            final java.sql.Date date = toSqlDate("10/9/7");
            assertThat(new SimpleDateFormat("yyyy/MM/dd").format(date), is("2010/09/07"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testToSqlDate_MediumStyle() throws Exception {
            final java.sql.Date date = toSqlDate("2010/9/7");
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/convert/DateConversionUtil.java

         * オブジェクトを{@link java.sql.Date}に変換します。
         *
         * @param src
         *            変換元のオブジェクト
         * @return 変換された{@link java.sql.Date}
         */
        public static java.sql.Date toSqlDate(final Object src) {
            return toSqlDate(src, null, LocaleUtil.getDefault());
        }
    
        /**
         * オブジェクトを{@link java.sql.Date}に変換します。
         *
         * @param src
         *            変換元のオブジェクト
         * @param pattern
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/beans/impl/PropertyDescImpl.java

            } else if (propertyType == Timestamp.class) {
                return TimestampConversionUtil.toSqlTimestamp(arg);
            } else if (propertyType == java.sql.Date.class) {
                return DateConversionUtil.toSqlDate(arg);
            } else if (propertyType == Time.class) {
                return TimeConversionUtil.toSqlTime(arg);
            }
            return arg;
        }
    
        private Object convertWithString(final Object arg) {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 15.3K bytes
    - Viewed (0)
Back to top