Hello friends
I use the following function to get the date:
Now I have two questions
1- I want the date to be displayed in the form (01/12/1401), not like this (1/12/1401), that is, if the day or month is a single digit, put 0.
i liked ==> (yyyy/mm/dd) no (yyyy/m/d)
<unrelated question removed by moderator>
Thanks
I use the following function to get the date:
VB.NET:
Public Function Shamsi_Date() As String
Dim DT As Date = Date.Now
Dim Glob As New Globalization.PersianCalendar
Shamsi_Date = Glob.GetYear(DT) & "/" & Glob.GetMonth(DT) & "/" & Glob.GetDayOfMonth(DT)
End Function
Now I have two questions
1- I want the date to be displayed in the form (01/12/1401), not like this (1/12/1401), that is, if the day or month is a single digit, put 0.
i liked ==> (yyyy/mm/dd) no (yyyy/m/d)
<unrelated question removed by moderator>
Thanks
Last edited by a moderator: