VBA Convert date to week number

前端 未结 6 407
渐次进展
渐次进展 2021-01-12 12:01

In VBA I want to convert a date as 03/11/2017(DD/MM/YYYY) into the week number for that date.

Until now I have the following code:

   \'geting the d         


        
6条回答
  •  一生所求
    2021-01-12 12:30

    WeekdayName( number, [abbreviate], [firstdayofweek] ) WeekdayName(2) Result: 'Monday'

    WeekdayName(2, TRUE) Result: 'Mon'

    WeekdayName(2, TRUE, vbMonday) Result: 'Mon'

提交回复
热议问题