Project

General

Profile

« Previous | Next » 

Revision 2626

Added by Jing Tao about 19 years ago

Add code to transfer string to date type.

View differences:

src/edu/ucsb/nceas/metacat/DocumentImpl.java
3531 3531
        
3532 3532
        try 
3533 3533
        {
3534
            if (createDate == null)
3535
            {
3536
                createDate = dbAdapter.getDateTimeFunction();
3537
            }
3538
            else
3539
            {
3540
                createDate = dbAdapter.toDate(createDate, "YYYY-MM-DD HH24:MI:SS");
3541
            }
3542
            if (updateDate == null)
3543
            {
3544
                updateDate = dbAdapter.getDateTimeFunction();
3545
            }
3546
            else
3547
            {
3548
                updateDate = dbAdapter.toDate(updateDate, "YYYY-MM-DD HH24:MI:SS");
3549
            }
3534 3550
            PreparedStatement pstmt = null;
3535 3551
            String sql = null;
3536 3552
            if (rootNodeId <= 0)

Also available in: Unified diff