Results 1 to 4 of 4

Thread: How to convert date format in postgres

  1. #1
    Join Date
    Jan 2009
    Posts
    74

    How to convert date format in postgres

    Hello friends,

    I am using postgres in php.I am trying to convert date entered by user as MM-DD-YYYY format to YYYY-MM-DD format.Can anyone give me a solution for this.

    Thanks in Advance.

  2. #2
    Join Date
    Dec 2008
    Posts
    79

    Re: How to convert date format in postgres

    Sure i will help you out with this did you try to use todate method.

    Intel Core 2 Duo 2.8 Ghz
    G31 Asrock Motherboard with Intel chipset
    2gb RAM
    256 Nvidia Graphic Card
    200gb HDD

  3. #3
    Join Date
    Jan 2009
    Posts
    74

    Re: How to convert date format in postgres

    Yes i try to use todate method but i am not getting the correct answer for it.

  4. #4
    Join Date
    Dec 2008
    Posts
    165

    Re: How to convert date format in postgres

    Try to use the following code i am sure it will work for you

    string date ( string $format [, int $timestamp ] )

    int strtotime ( string $time [, int $now ] )

Similar Threads

  1. How to convert math text PDF format to Kindle readable format
    By The#Gaelic in forum Portable Devices
    Replies: 7
    Last Post: 23-02-2012, 12:09 PM
  2. How to convert avi format file to iPhone format ?
    By hRYHORIY in forum Portable Devices
    Replies: 5
    Last Post: 13-06-2011, 10:38 AM
  3. Tips to convert MP4 format to XviD format
    By Itronix in forum Tips & Tweaks
    Replies: 2
    Last Post: 04-02-2010, 02:12 AM
  4. Unable to convert djvu format files in JPEG format
    By Suzane in forum Windows Software
    Replies: 2
    Last Post: 11-05-2009, 05:14 PM
  5. Replies: 3
    Last Post: 06-10-2006, 03:32 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,191,198.83535 seconds with 17 queries