Welcome! Log In Create A New Profile

Advanced

Date entry

Posted by Aelfassi 
Aelfassi
Date entry
March 23, 2009 03:51PM
Hi everybody,

in the Date field if I start inputting the date as 12/30/.... without entering the year windev completes the field by adding the current year result : 12/30/2009, I would like to know if there is any possibility to complete by another year of my choice like 2008 e.g without changing the date of the PC. in my application if I change the Fiscal year it'll take this year to complete the date.

Thank you in advance,
ICI
Re: Date entry
March 24, 2009 10:03AM
Maybe , something like this

gsMyGlobalYear is string
gsMyGlobalYear = "2007"

On date field EditBox->Option on Exit of EDT_DATE

dMyLocalDate is Date = DateSys() //This is 20090324 (Today date)

dMyLocalDate..Year = gsMyGlobalYear
dMyLocalDate..Day = Right(EDT_DATE,2) 20071210
dMyLocalDate..Month = Middle(EDT_DATE,5,2) 20071210

EDT_DATE = dMyLocalDate

This is If your displayed date is ddMMyyyy and Returned yyyyMMdd
If your Returned value from Description of this field is different you need to correct
Right and Middle positions



Edited 1 time(s). Last edit at 03/24/2009 10:04AM by ICI.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: