Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Closed Thread
 
Thread Tools Display Modes
  #1  
Old 05-29-2017, 03:38 AM
robert robert is offline
Senior Member
 
Join Date: Sep 2014
Posts: 379
Default Comparison

How can I compare 2 different date formats

29-7-2017 and 2017/7/29
29-7-2017 and 7/29/2017

if 29-7-2017 = 2017/7/29 then
date is equal
  #2  
Old 05-29-2017, 08:28 AM
Norrit Norrit is offline
Moderator
 
Join Date: Aug 2001
Location: Landgraaf
Posts: 7,222
Default

Without knowing the origin you cannot.

2017/7/11, is that the 11th of August or the 7th of November?
So you need to know the original format for this
  #3  
Old 05-29-2017, 10:39 AM
robert robert is offline
Senior Member
 
Join Date: Sep 2014
Posts: 379
Default

Quote:
Originally Posted by Norrit View Post
Without knowing the origin you cannot.

2017/7/11, is that the 11th of August or the 7th of November?
So you need to know the original format for this
Ok thanks solved.

Last edited by robert; 05-29-2017 at 11:06 AM.
  #4  
Old 05-29-2017, 11:01 AM
Norrit Norrit is offline
Moderator
 
Join Date: Aug 2001
Location: Landgraaf
Posts: 7,222
Default

Format DateTime

Or set the DateFormat
ShortDateFormat
LongDateFormat

Or learn how to use google, because this would've been an easy search with the answer in the first 2 hits
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 07:00 AM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2017, vBulletin Solutions, Inc.