Forum Discussion

jasmeenkaur27's avatar
jasmeenkaur27
Contributor
7 years ago
Solved

require date in specified format

Hi ,

 

I am trying to convert to a formatted date by using the below code:-

 

strdateTest = Project.Variables.strEffectiveDate;(05/02/2018)

 

strdateTest = DateTimeToFormatStr(strdateTest,"%d\-%b\-%y")

 

I get the output as 05-Feb-18. My required output is 05-FEB-18.

 

Could you please help me on this one?

 

  • Hi,

     

    aqString.ToUpper(strdateTest) will do what you need.