I had to format the string from ActionScript to pass to the Value Object as
follows.

var eDate:Date = Event_DateCol.selectedDate;
var event_Date:String = String(eDate.getFullYear()) + "-" + 
     String(eDate.getMonth()+1) + "-" +   
     String(eDate.getDate()) + " 00:00:00.0";
     var parameters:* = 
    {
        "method": "Insert",             "Event_Date": event_Date,...,   
    };

then in the VO

public void setEvent_Date(String Event_Date)
{
        if ((Event_Date != null) && (Event_Date.length() > 0))
        {
                this.Event_Date = Timestamp.valueOf(Event_Date);
        }
}

I hope this helps someone else.

        

Mike Oliver wrote:
> 
> How do I tie a DateField control to a Value Object with a Timestamp column
> in the database.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/MySql-timestamp-column-type-and-Flex-DateField-tp21196170p21209213.html
Sent from the FlexCoders mailing list archive at Nabble.com.

Reply via email to