Create a field programatically with let me to introduce two values I don't want to use field_collection ;) I'll be easy.

I want to build a module that create a a field that let me to save two values at the same time, name and date.

I'd like to have both in the same table, but I don't find any article that explain how to make/define it.

It will be a field with two fields to fill in a node.

Any idea?

Thanks.
Download the examples module and look through the Field Example module.

It contains extensive code examples that show you in detail how to create a custom field, widget and formatter.