| View previous topic :: View next topic |
| Author |
Message |
pj Newbie
Joined: 26 Apr 2002 Posts: 11
|
Posted: Wed May 22, 2002 5:05 pm Post subject: @DateTime Problem/Error |
|
|
if I run
| Code: | | %D = @datetime(,@dlgtext(AuthDate) |
or
| Code: | | %D = @datetime(yyyymmdd,@dlgtext(AuthDate) |
Where AuthDate has a value dd/mm/yyyy
I get an invalid date time error on NT4 but all works as expected on Win200Pro
Any suggestions for a workaround? I would be happy with yyyymmdd as I want to sort a list based on the date
Thanks |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Wed May 22, 2002 6:15 pm Post subject: |
|
|
If it works by entering the value directly in NT...
For example: %d = @datetime(,05/22/2002)
You might try parsing @dlgtext(AuthDate) into
separate values and using them like this:
%d = @datetime(,%m/%d/%y)
One thing I've noticed, using the year first doesn't
work when finding the floating point in Win95. I
have to use a month/day/year parameter.
BTW, your examples are missing a parenthesis on
the right...
Cheers, Mac  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
Tommy Admin Team
Joined: 16 Nov 2002 Posts: 746 Location: The Netherlands
|
Posted: Thu May 23, 2002 1:57 pm Post subject: |
|
|
In some non-US countries, different date separators are set. You may for example want to try @DATETIME(,10-10-2000).
Also don't forget the final closing bracket in your examples, such as:
%D = @datetime(,@dlgtext(AuthDate))
Tommy |
|
| Back to top |
|
 |
|