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 5934609
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:08:16+00:00 2026-05-22T15:08:16+00:00

Dates are stored in DB as such: 2011-05-26 11:00:00 in a datetime field. I’d

  • 0

Dates are stored in DB as such: “2011-05-26 11:00:00” in a datetime field. I’d like to find all rows where the date is greater than the first of this month, ie: 2011-05-01 09:00:00

The date formats in the DB can not be changed. What MySQL function can I use to convert the date in the DB to a format that can handle comparison? I’m guessing the best format for “first of the month” is a unix timestamp?

The time values in the dates are always present but only office hours, so from 09:00 to 17:00.

  • 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-05-22T15:08:17+00:00Added an answer on May 22, 2026 at 3:08 pm

    If it’s stored in a DATETIME field, just query on WHERE date > '2011-05-01 09:00:00'.

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

Sidebar

Related Questions

How would I take a stored date, like 2011-01-30 18:23:49, and adjust it to
I have a date column with dates stored as strings, such as 20120817. Unfortunately,
I call stored function with such signature: FUNCTION ADDDAYS (city VARCHAR2, startDate DATE, numDays
I have all dates stored as timestamps (int) in the database. how can I
I have dates stored in MongoDB using Date(), MongoDB uses UTC it's date type,
I have a Date array which stored dates and time in its respective positions
Consider 2 dates stored in 2 tables: table_1: user_id data_1 update_date table_2: user_id data_2
I have a list of dates stored in MySQL using PHP. These were stored
I have tried several mySQL queries to compare a column of dates stored as
I have a table with 5 million records of dates stored as char(10) with

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.