hello,
if you have a date: 01-01-2018
and you have a date1 10-10-2018
how would you then make a script which always validate that date1 is minimum 30days earlier than the normal date?
#Rumba
hello,
if you have a date: 01-01-2018
and you have a date1 10-10-2018
how would you then make a script which always validate that date1 is minimum 30days earlier than the normal date?
hello,
if you have a date: 01-01-2018
and you have a date1 10-10-2018
how would you then make a script which always validate that date1 is minimum 30days earlier than the normal date?
hello,
if you have a date: 01-01-2018
and you have a date1 10-10-2018
how would you then make a script which always validate that date1 is minimum 30days earlier than the normal date?
hello,
if you have a date: 01-01-2018
and you have a date1 10-10-2018
how would you then make a script which always validate that date1 is minimum 30days earlier than the normal date?
hello,
if you have a date: 01-01-2018
and you have a date1 10-10-2018
how would you then make a script which always validate that date1 is minimum 30days earlier than the normal date?
hello,
if you have a date: 01-01-2018
and you have a date1 10-10-2018
how would you then make a script which always validate that date1 is minimum 30days earlier than the normal date?
hello,
if you have a date: 01-01-2018
and you have a date1 10-10-2018
how would you then make a script which always validate that date1 is minimum 30days earlier than the normal date?
hello Tom, the latest script you gave me worked perfectly... at first but now i keep on getting the error "overflow" do you know why this happens?
Sub Main
Dim betwDates As Integer
Dim exampleDate1 as String
Dim exampleDate2 as String
emreadscreen exampleDate1,10,16,18
emreadscreen exampleDate2,10,17,39
'On teh host screen my date appear as say "20-06-2018"
'My locales format is Month/Day/Year e.g. "06-20-2018"
'So I need to get my YYYY, MM and DD lined up and switch from "-" to "/" which is what my FormatDate function does.
exampleDate1 = FormatDate(exampleDate1)
exampleDate2 = FormatDate(exampleDate2)
emsetcursor 22,6
betwDates = DateDiff("d", exampleDate2, exampleDate1)
Msgbox betwDates
emsetcursor 22,6
emsendkey betwDates
End Sub
Function FormatDate(exampleDate as String) as String
Dim NewDate as String
NewDate = Right(exampleDate, 4) & "/" & Left(exampleDate, 2) & "/" & Mid(exampleDate, 4, 2)
FormatDate = NewDate
End Function
hello,
if you have a date: 01-01-2018
and you have a date1 10-10-2018
how would you then make a script which always validate that date1 is minimum 30days earlier than the normal date?
hello,
if you have a date: 01-01-2018
and you have a date1 10-10-2018
how would you then make a script which always validate that date1 is minimum 30days earlier than the normal date?
hello,
if you have a date: 01-01-2018
and you have a date1 10-10-2018
how would you then make a script which always validate that date1 is minimum 30days earlier than the normal date?
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.