Now() Format

 
Post new topic   Reply to topic    Aprelium Forum Index -> Classic ASP
View previous topic :: View next topic  
Author Message
kaffesump
-


Joined: 25 Mar 2003
Posts: 1

PostPosted: Wed Jul 09, 2008 10:30 pm    Post subject: Now() Format Reply with quote

When using the now()-function I get the wrong format because of geographical settings. When using vbShortDate as format-type for example (with formatDateTime) I get m/d/YYYY instead of YYYY-MM-DD as I want (since I am in Sweden).

Any suggestions are very welcome! :)
Back to top View user's profile Send private message
techkarthiks
-


Joined: 25 Apr 2009
Posts: 1

PostPosted: Sat Apr 25, 2009 12:05 pm    Post subject: Reply with quote

use
Code:

<%=year(now)&"-"&month(now)&"="&day(now)%>


Mods Note-
Please use the signature option in your profile settings.
Moxxnixx
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> Classic ASP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group