Hi Erel,
I had finished jThaiDate Library ,but I need to know addtion in my case,I need imonth could to be as String or Int. Is there way?
P.S. In order that I could use Only DateTime without DateUtils or use the both of them.
I had finished jThaiDate Library ,but I need to know addtion in my case,I need imonth could to be as String or Int. Is there way?
P.S. In order that I could use Only DateTime without DateUtils or use the both of them.
B4X:
Public Sub ThaiMonth(imonth As String or imonth as Int ) As String
Select imonth
Case "January" or 1
Return "มกราคม"
Case "February" or 2
Return "กุมภาพันธ์"
Case "March" or 3
Return "มีนาคม"
Case "April" or 4
Return "เมษายน"
Case "May" or 5
Return "พฤษภาคม"
Case "June" or 6
Return "มิถุนายน"
Case "July" or 7
Return "กรกฎาคม"
Case "August" or 8
Return "สิงหาคม"
Case "September" or 9
Return "กันยายน"
Case "October" or 10
Return "ตุลาคม"
Case "November" or 11
Return "พฤศจิกายน"
Case "December" or 12
Return "ธันวาคม"
End Select
End Sub