VBA Day Function

DAY

With the use of Day Function in excel vba macro, we get the day of the month from a given date, Which will be a whole number between 1 and 31.
Day Function का प्रयोग कर हम macro में किसी दिए गए date से तारीख निकालते हैं, जो कि 1 और ३१ के बीच को नंबर हो सकता है.
For Example1:-
If A1 cell a value 15-Mar-17 and we want to display day from that value. For this we have to use below macro. It will display 15 in message box, which is day from A1 cell value.
अगर A1 cell में 15-Mar-17 है और हम उस value से तारीख निकाल कर message box में display करना चाहते हैं. इसके लिए हमें निचे लिखे macro use करना होगा. यह message box में 15 display करेगा, जो कि cell A1 का DAY है.
Sub Day_1()
MsgBox Day(Range(“A1”).Value)
End Sub
————————————————————————————————————–
Example2:-
I want to make a macro which take day from A1 Cell and put it at A5 Cell, for this we have to use below macro.
मैं एक macro बनाना चाहता हूँ, जो कि A1 cell से तारीख लें, और उसे A5 cell में page करे, इसके लिए हमें below macro use करना होगा.
Sub Day_2()
Range(“A5”).Value = Day(Range(“A1”).Value)
End Sub