Ordinal Date (only month/day)
How can I create a ordinal date just using month/day only?
All the examples I see have month,date,and year.
You can't. A date consists of a year, a month and a day. Can you provide more details about why you want to do this?
Please post questions to the forums, where others may benefit.
I do not offer free assistance by e-mail. Thank you!
A Date match a unique Time event.
Therefore a field Date (DateTime) is really compose by :
Month + Day + Year + Hour + Minute + Second
You can decide to use DateTime data type, but to show only part of it, using related functions like Format(), DatePart(), ecc...
If you want manage and store only Month and Year, then you use a DateTime field type.
You must store the month/year in a TEXT data type.
They are trying to make a small footprint date. (it wasnt my idea)
This is what im trying to create. A program that will write this easily. I know it can be done
So basically you are just looking for the day of the year, right.
(i.e., 4/9 = the 99th day of the year) Try this
Dim intDayOfYear As Integer
intDayOfYear = DatePart("y", Now)
I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
Please use [Code]your code goes in here[/Code] tags when posting code.
Before posting your question, did you look here
Got a question on Linux? Visit our Linux sister site.
Modifications Required For VB6 Apps To Work On Vista
Originally Posted by Hack
Thats the one... Thanks!!!!
By Rageagainst20 in forum Java
Last Post: 12-19-2007, 12:19 PM
By matrik02 in forum VB Classic
Last Post: 05-11-2007, 01:33 AM
By hemanthjava in forum Java
Last Post: 07-05-2006, 11:08 PM
By Nizar in forum ASP.NET
Last Post: 01-24-2003, 11:10 AM
By Fabio Luis De Paoli in forum Java
Last Post: 03-03-2001, 02:12 PM
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL