Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8896151
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:58:01+00:00 2026-06-14T23:58:01+00:00

I am trying to perform a query which contains a date through an API.

  • 0

I am trying to perform a query which contains a date through an API. The date should be in a ISO_8601 date format(yyyy-MM-dd’T’HH:mm:ssZ).

For example, one of the tuples in my table could have the date:

2012-11-11T00:00:00+0000. 

In unicode it is queried for as follows:

2012-11-11T00%3A00%3A00%2B0000

All my own checks to see if the date is valid passes but I am getting the following SQL Exception:

SQL Exception: ERROR: operator does not exist: timestamp with time zone >= character varying

My code which carries out the queries through the API is written in python. I’m not sure what the exception means? Is it not possible to query for a timestamp with a String?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T23:58:02+00:00Added an answer on June 14, 2026 at 11:58 pm

    To specify a timestamp literal, use the following format:

    where ts_column >= timestamp '2012-11-11 T00:00:00+0000'
    

    The keyword timestamp is important to define a timestamp literal, otherwise it’s “only” a character value (and that’s what the error message tells you). The value must conform to the ISO date style.

    Another option would be to use the to_timestamp function:

    where ts_column >= to_timestamp('2012-11-11 00:00:00', 'yyyy-mm-dd hh24:mi:ss');
    

    which gives you more control over the actual format of your literal.

    For more details see the manual: http://www.postgresql.org/docs/current/static/functions-formatting.html#FUNCTIONS-FORMATTING-DATETIME-TABLE

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having some problems trying to perform a query. I have two tables, one
I am trying to perform a query which is composed of two $or 's:
I have the following three tables which I am trying to perform a query
I am trying to perform a query which groups a set of data by
I am trying to perform the following query Create a view which restricts staff
I'm trying to perform a CONTAINS query with multiple terms over multiple columns, like
I am trying to perform a SQL query which generates a table with two
I'm trying to perform a SQL query through a linked SSAS server. The initial
I am trying to perform a LINQ query on a DataTable and show the
I'm trying to perform a DISTINCT clause on a query like this SELECT DISTINCT

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.