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

  • SEARCH
  • Home
  • 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 8779105
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:42:00+00:00 2026-06-13T19:42:00+00:00

I have datetime in my table like this 01.08.2012 14:20 22.10.2012 10:02 i enter

  • 0

I have datetime in my table like this 01.08.2012 14:20 22.10.2012 10:02

i enter 2 dates(can i enter them just as 10.08.2012 or i have to add time to ) and i want to do this

 $sqlSelectMY='BDate >= "'.$fromDate.'" AND BDate <="'.$toDate.'"';

 "SELECT* FROM table  WHERE ".$sqlSelectMY.";";

I put the date clause in variable sqlSelectMy and than use it in the variable that i call the select from the mysql database i would like to see some examples if anyone can refer any to me thx. How to write the input dates that will do the thing that i need now with the code there is even if I input dates like i have at the top with time it doesnt do anything…

  • 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-13T19:42:02+00:00Added an answer on June 13, 2026 at 7:42 pm

    Use phps function substr() to fix the date format to be YYYY-MM-DD HH:II:SS and use that variable for fromDate and toDate variables , that should do it , I will edit soon with some working code soon as i write it down 🙂

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

Sidebar

Related Questions

I have a table like this Col1 Col2 Mindate MaxDate A B 12-04-2012 00:12:00:087
I have a table like this id, name, datetime which might store multiple entries
I have a table like this: ID | username | domain | operation| datetime
I have a table like this: create table time_sheet ( StatusCode char(1), start_time datetime,
I have a table like this id type type_id cust ip_address datetime 395 Category
I have table like this: CREATE TABLE Date_Table (Year DATETIME , Month1 INTEGER, Month2
I have a table containing reports and the date/time they were created. I'd like
How to filter DataView/DataTable by time? I have a table with datetime column inside
I have a table that has two datetime columns (one for start time and
I have a table with a datetime column. Into this column I have written

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.