hotmale Posted June 20, 2005 Share Posted June 20, 2005 I'm a newbie when it comes to programming, so take it easy In VB, the value "date" (whether it's a variable, caption...), displays the current date on the machine. But it doesn't work the same way for days. What can I do so that my app understands what day it is?! Link to comment Share on other sites More sharing options...
Delprat Posted June 20, 2005 Share Posted June 20, 2005 (edited) Look at the Format$() function :day_number$ = Format$(Date, "d")day_number_2_digits$ = Format$(Date, "dd")day_name_abbr$ = Format$(Date, "ddd")day_name_full$ = Format$(Date, "dddd")and so on... "m" for month, "mmmm" for month full name, "w" for week number...you can make more "complex" formats :test$ = Format$(Now, "dd\t\h mmmm yyyy \- hh:mm tt") will retrun :"20th june 2005 - 09:05 pm"But This Is For VB Classic, Not VB Script, Maybe VB.NET...bye Edited June 20, 2005 by Delprat Link to comment Share on other sites More sharing options...
hotmale Posted June 21, 2005 Author Share Posted June 21, 2005 (edited) Thanks Edited June 21, 2005 by hotmale Link to comment Share on other sites More sharing options...
Delprat Posted June 21, 2005 Share Posted June 21, 2005 You're welcome Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now