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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T00:48:49+00:00 2026-05-30T00:48:49+00:00

I have date value stored in format dd.mm.yyyy as longtext . I need to

  • 0

I have date value stored in format dd.mm.yyyy as longtext. I need to compare this value to CURDATE() within a SELECT statement. (Please, don’t ask me why it is saved in longtext.) Is there any way to do it?

This piece of code is not working of course, but it illustrates what I want to do:

...
WHERE longtext_date_value <= CURDATE()
...
  • 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-30T00:48:50+00:00Added an answer on May 30, 2026 at 12:48 am

    As Sergey comments: if MySQL, you can simply use STR_TO_DATE:

        ...
    WHERE STR_TO_DATE(longtext_date_value,'%d.%m.%Y') <= CURDATE()
        ...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have to compare a user entered date, Dt (in mm/dd/yyyy format) with the
I have a (date time) stored in database in this format 2011-10-12 02:01:24 when
I have a column which has date-values stored in varchar (format ddmmyy) like this
I have a textbox which accepts Minutes. This value will be stored in a
I have used a textbox to store a date in DD-MM-YYYY format and since
I have a date in the string format in a table and I need
I have the following date stored as a string 04.09.2009 (dd.mm.yyyy) Now I would
I have a date field stored in the format 16/08/2010 17:17 I am attempting
In a cell in Excel sheet I have a Date value like: 01/01/2010 14:30:00
I have a date converted to double value and saved in database. Now, I

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.