469,323 Members | 1,553 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,323 developers. It's quick & easy.

Which Locale ID (LCID) displays YYYY-MM-DD (ISO 8601)?

Thanks in advance
Christian
Jul 22 '05 #1
3 7229
Found it. 1053 (Sweden)
"Christian Perthen" <ab**********@dontreplytothisaddress.com> wrote in
message news:eN*************@TK2MSFTNGP10.phx.gbl...
Thanks in advance
Christian

Jul 22 '05 #2
Or, you could write a function instead of having LCID settings affect other
things (such as decimals).

http://www.aspfaq.com/2313

On 3/12/05 10:28 PM, in article eW**************@TK2MSFTNGP15.phx.gbl,
"Christian Perthen" <ab**********@dontreplytothisaddress.com> wrote:
Found it. 1053 (Sweden)
"Christian Perthen" <ab**********@dontreplytothisaddress.com> wrote in
message news:eN*************@TK2MSFTNGP10.phx.gbl...
Thanks in advance
Christian



Jul 22 '05 #3
And to make a variable be in the format of mm/dd/yyyy (and the final
line of code can be modifed for other date formats), perhaps try
something like the following which you might even make into a function
that you might put on a page that gets included in your main pages:

varFld = CDate(MyVariable)

intMonth = Month(varFld)
intDay = Day(varFld)
intYr = Year(varFld)

If intMonth < 10 Then
strMonth = "0" & CStr(intMonth)
Else
strMonth = CStr(intMonth)
End If

If intDay < 10 Then
strDay = "0" & CStr(intDay)
Else
strDay = CStr(intDay)
End If

strYr = Right(CStr(intYr), 4) ' And change the 4 to 2 for 2 year dates.

varFld = CStr(strMonth & "/" & strDay & "/" & strYr)

Best regards,
J. Paul Schmidt, Freelance ASP Web Developer
http://www.Bullschmidt.com
ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 22 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by J. Baute | last post: by
2 posts views Thread by J. Baute | last post: by
1 post views Thread by eyal.susser | last post: by
2 posts views Thread by Chris | last post: by
2 posts views Thread by Just4U | last post: by
2 posts views Thread by Thomas Troeger | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Gurmeet2796 | last post: by
reply views Thread by mdpf | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.