when you format the data to insert do a print statement and post the value so we can see an example of the data you are trying to insert.
it sounds like the format you are creating is wrong
this will be easy to fix once you show us the values you are using