| From: | Marin D <marin(at)cybernet(dot)bg> |
|---|---|
| To: | Mattias Kregert <matti(at)algonet(dot)se> |
| Cc: | pgsql-general(at)postgreSQL(dot)org |
| Subject: | Re: [GENERAL] Q: How to convert int to date? |
| Date: | 1998-06-23 11:03:16 |
| Message-ID: | Pine.LNX.3.96.980623135806.15145C-100000@server.iclub.techno-link.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On Tue, 23 Jun 1998, Mattias Kregert wrote:
->How do I convert INTEGER to DATE in 6.3.2?
->
->I have a table 'mytbl' with a column 'd' which is
->an integer, containing dates in YYMMDD form. Now,
This is quite bad representation of date. U know Y2K, so on...
->how do I convert these integer dates to date dates?
->
I would propose to modify your table with DATE column, dump your old
table, write a script modifying the 980622 to 98-06-22 and import it back
in the new table
or write your own function dealing with such 'dates'
Best regards
Marin
-= Why do we need gates in a world without fences? =-
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Naushit Sakarvadia | 1998-06-23 12:04:38 | User authetication failed. |
| Previous Message | Mattias Kregert | 1998-06-23 10:37:57 | Q: How to convert int to date? |