An error message while adding today’s date to a field in Defects module
Question ID: 106892
0
0

I am trying to assign today’s date as a value to "BG_CLOSING_DATE". This is working fine in another project.
But when I am doing it for another project, I am getting an error. screenshot is attached.![alt text][1]

[1]: /storage/temp/450-201603210728421-date.png

Marked as spam
Posted by (Questions: 204, Answers: 2)
Asked on May 27, 2016 9:41 pm
118 views
Answers (1)
0
Private answer

GoDawgs,

I reproduced the same error in my test environment and then solved it using the following code:
Bug_Fields.Field(''BG_CLOSING_DATE'').Value = Date()

So, change the Today() call to a Date() call and your code should work.

My research found that the Today() function is an Excel function not a VB Script function so if you have other projects doing the same thing perhaps they are doing it in an Excel worksheet as opposed to the ALM Workflow code.

Marked as spam
Posted by (Questions: 1, Answers: 216)
Answered on May 27, 2016 9:44 pm
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top