forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


@DateTime Problem/Error

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
pj
Newbie


Joined: 26 Apr 2002
Posts: 11

PostPosted: Wed May 22, 2002 5:05 pm    Post subject: @DateTime Problem/Error Reply with quote

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
View user's profile Send private message
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Wed May 22, 2002 6:15 pm    Post subject: Reply with quote

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 Smile

_________________
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
View user's profile Send private message Send e-mail
Tommy
Admin Team


Joined: 16 Nov 2002
Posts: 746
Location: The Netherlands

PostPosted: Thu May 23, 2002 1:57 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group