Hejsan,
Är det någon som vet hur man skriver en datumfunktion som konverterar om ett datum till svenskt? Om man t.ex ha hemsidan på en webserver i usa. Då blir ju tiden fel och veckonamnet på svenska!
'klockslag 24:00
Function SweTime(the_date)
If the_date = "" Then the_date = Now
hh = Hour(the_Date)
ii = Minute(the_Date)
if hh<10 then hh = "0" & hh
if ii<10 then ii = "0" & ii
SweTime = hh&":"&ii
End Function
'Datum i formatet 0000-00-00
Function SweDate(the_Date)
If the_date = "" Then the_date = Now
yyyy = Year(the_Date)
mm = Month(the_Date)
dd = Day(the_Date)
if mm<10 then mm = "0" & mm
if dd<10 then dd = "0" & dd
the_Date = yyyy&"-"&mm&"-"&dd
SweDate = the_Date
End Function
'Datum och tid i formatet 0000-00-00 00:00
Function SweDateLong(the_Date)
If the_date <> "" Then
yyyy = Year(the_Date)
mm = Month(the_Date)
dd = Day(the_Date)
hh = Hour(the_Date)
ii = Minute(the_Date)
if mm<10 then mm = "0" & mm
if dd<10 then dd = "0" & dd
if hh<10 then hh = "0" & hh
if ii<10 then ii = "0" & ii
SweDateLong = yyyy&"-"&mm&"-"&dd&" "&hh&":"&ii
End If
End Function
ChilliSoft stödjer inte LCID. De gjorde inte det sist jag kollade iallafall. Nätverk och kommunikation gav cobalt bäst i test och det tycker jag är förjävla pissigt...
Även om man har sin sida på en amerikansk server med engelskt innehåll är det enklare att skicka datum mellan sidor på ett svenskt manér: