Time'n Date trouble - format pain
| From: | Ben9000 | Date: | Mon, 26 May 2003 08:37:19 +0000 |
| Subject: | Time'n Date trouble - format pain | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-28039@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello!
As my nightmare comes true I have to input CSV files into a MySQL DB.
The Date(time) format can differ in 3 different ways:
- - MM/DD/YYYY e.g. 06/25/2002
- - DD/MM/YYYY e.g. 17/03/2003
.. AND ...
- - "Sat, 19 Apr 2003 12:57:23 +0200" :(((
Do you have some hint for me how I can avoid a pain of explode()s and
endless parsing?
Thank you for your help!
enjoy your day
Ben :)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE+0dI/ROwluvOuI4ARAtexAJ94MJuXm9h/7rlUYY7fhAN6sW5ixwCaAj2E
ucKctswt8qZKonxSynGAxNY=
=U7H2
-----END PGP SIGNATURE-----