|
-
Jun 10th, 2001, 12:58 PM
#1
PHP, date...
Hi,
I want to get date, just the number of day in month. Then, the month number and replace it with string version.
In VB I would do like this:
Code:
Dim Temp As String
Temp = Format(Day, "#") & ". "
Select Case Val(Format(Month, "#"))
Case 1
Temp = Temp & "tammi"
Case 2
Temp = Temp & "helmi"
Case 3
Temp = Temp & "maalis"
Case 4
Temp = Temp & "huhti"
Case 5
Temp = Temp & "touko"
Case 6
Temp = Temp & "kesä"
Case 7
Temp = Temp & "heinä"
Case 8
Temp = Temp & "elo"
Case 9
Temp = Temp & "syys"
Case 10
Temp = Temp & "loka"
Case 11
Temp = Temp & "marras"
Case 12
Temp = Temp & "joulu"
End Select
Temp = Temp & "kuuta"
So how I can do this in PHP?
Thanks in advance, reply with e-mail if possible ([email protected]),
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|