What I do is use sqlite's current_timestamp (which looks something like this: 2009-06-16 12:11:24). To do this just set the row type of your qslite table to
Data type: "DATETIME"
Allow null: NO
Default value: CURRENT_TIMESTAMP
Then use an SQL query like this:
@"INSERT INTO 'scores' ('one', 'two', 'three') VALUES ('%d', '%d', '%d')"
ignoring the date, so that it will automatically get the current time value.
Then to convert this to an NSDate you can use an NSDateFormatter like this:
NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
[formatter setDateFormat:@"yyyy-MM-dd HH:mm:ss"]; //this is the sqlite's format
NSDate *date = [formatter dateFromString:score.datetime];
and now you have that date as an NSDate object. Just don't forget to release the NSDateFormatter we allocated :)