I want to import the data of the following format (in a csv file) into postgres:
('string1', 'string2', 'string3', 1999-10-10,2000-10-10)
Here column1, column2, column3 are of type string and column4, column5 are of type date. My problem is, apart from normal dates like '1999-10-10'. I also want dates in "BC" to be imported into postgres, but I am not getting how to achieve the same. Can someone please help me with this?
Eg. I want dates of the following format to be imported into postgres:
('string1', 'string2', 'string3', 199-10-10 BC, 200-10-10 BC)
Is it possible to important csv fies with dates in BC as well as AD into postgres. If yes, can someone please help me with this as I am a complete novice at postgres?