Full Version: Does any one know how to get 01 or 02 instead of just 1 or 2? *DELETED*
UtterAccess Discussion Forums > Microsoft® Access > Access Forms
Shaz_Shaz
Post deleted by Shaz_Shaz
Shaz_Shaz
Hi everybody,

I am using Day(Now) to get current day and it returns a single number of day e.g. 1,2,3,4….
Does any one know how to get 01 or 02 instead of just 1 or 2?
Day(Now) = 1
I need to see Day(Now) = 01

Please suggest me any if there is any parameter of function which could help me.

Thank You
theDBguy
Hi,

If you don't care that "01" is a string, you could try something like:

Format(Day(Date()), "00")

Hope that helps...
Shaz_Shaz
Thanks mate it works!
Shaz_Shaz
Thanks Mate, it works now!
theDBguy
You're welcome. Glad to hear it worked! Good luck with your project.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.