CPB Mailing List
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: TDateTime
The problem is easy to solve. Force the user to enter four digits instead
of 2. If you wait for BCB4, there will be a variable that helps to overcome
the problem as Charlie Calvert said.
Nohammad Iqbal
----------
| From: Thomas Browns <Thomas.Browns@kpmg.co.uk>
| To: cpb-thread@zdtips.com
| Subject: TDateTime
| Date: Wednesday, October 07, 1998 11:20 Õ
|
| To all:
|
| A quick question: I have been using the 'StrToDate()' function to access
user
| input from an edit box
|
| 'TDateTime dt = StrToDate(Edit1->Text)'
|
| When I enter a date like '06/10/03' using the European convention
'dd/mm/yy' and
| use the 'DecodeDate()' function to peek into the TDateTime variable dt, I
find
| the year '1903'!?
|
| I can't believe BCB has a year 2000 problem so any tips on getting out
the right
| date?
|
| TIA
|
| Cheers
|
|
|
| Email Disclaimer
|
| The information in this email is confidential and may be legally
privileged.
| It is intended solely for the addressee. Access to this email by anyone
else
| is unauthorised.
| If you are not the intended recipient, any disclosure, copying,
distribution
| or any action taken or omitted to be taken in reliance on it, is
prohibited
| and may be unlawful. When addressed to our clients any opinions or advice
| contained in this email are subject to the terms and conditions expressed
in
| the governing KPMG client engagement letter.
W Komornicki's Home Page |
Main Index |
Thread Index