How to convert “string” to “timestamp without time zone”

后端 未结 2 1650
忘了有多久
忘了有多久 2020-12-13 14:50

I am new to Postgresql and I am using WCF services.
Here is my code snippet:

$.ajax({
    url: \'../Services/AuctionEntryServices.svc/InsertAuctionDetail         


        
2条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-13 15:17

    To convert a string into a timestamp without timezone, for Postgresql, I use the above

    SELECT to_timestamp('23-11-1986 09:30:00', 'DD-MM-YYYY hh24:mi:ss')::timestamp without time zone;
    

提交回复
热议问题