prichardson Posted August 22, 2007 Share Posted August 22, 2007 I am trying to find the asp code for this date - time format :Day / Month / Year Hour : Month : SecondsI have found lots of alternative combinations but yet to find the asp code for this format.If you can help me out - would most appreciate it.Cheers Link to comment Share on other sites More sharing options...
aspnetguy Posted August 22, 2007 Share Posted August 22, 2007 what about this Dim DateTimeDateTime = Date & " " & Time Link to comment Share on other sites More sharing options...
prichardson Posted August 22, 2007 Author Share Posted August 22, 2007 This is what I got but it fomats it date with the day first and month second - how can i get it to put it like this: month then day? <% response.write(FormatDateTime(Now())) %> Link to comment Share on other sites More sharing options...
aspnetguy Posted August 22, 2007 Share Posted August 22, 2007 the default is supposed to be mm/dd/yy. Have you changed session.lcid?Either way you could use this example to break the date a part and assemble it the way you wanthttp://psacake.com/web/fr.asp Link to comment Share on other sites More sharing options...
prichardson Posted August 22, 2007 Author Share Posted August 22, 2007 Cheers aspnetguyThats brilliant. I was having trouble because i could not seem to get it to work as the default. It must be that problem you suggested. I don't know what that is - but i will look it up.Thanks again. Link to comment Share on other sites More sharing options...
aspnetguy Posted August 22, 2007 Share Posted August 22, 2007 just a thought. What country is your pc set to? IIS may automatically read that info.At the bottom of this page are a number of country codes that will change the default formatting for date and currencyhttp://www.codetoad.com/asp/format_date_time.asp Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.