Hi,
How to get two digit month from current date in asp.net like 03 for march?
This way
C#
int month = DateTime.Now.Month;
VB
Dim month As Integer = DateTime.Now.Month
© COPYRIGHT 2024 ASPSnippets.com ALL RIGHTS RESERVED.