-
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?
Phil Weber
http://www.philweber.com
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.
HTH
-
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
http://www.fs.fed.us/raws/book/julian.shtml
-
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
Code:
Dim intDayOfYear As Integer
intDayOfYear = DatePart("y", Now)
Msgbox intDayOfYear
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
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
Code:
Dim intDayOfYear As Integer
intDayOfYear = DatePart("y", Now)
Msgbox intDayOfYear
Thats the one... Thanks!!!!
Similar Threads
-
By Rageagainst20 in forum Java
Replies: 2
Last Post: 12-19-2007, 11:19 AM
-
By matrik02 in forum VB Classic
Replies: 0
Last Post: 05-11-2007, 12:33 AM
-
By hemanthjava in forum Java
Replies: 0
Last Post: 07-05-2006, 10:08 PM
-
By Nizar in forum ASP.NET
Replies: 1
Last Post: 01-24-2003, 10:10 AM
-
By Fabio Luis De Paoli in forum Java
Replies: 0
Last Post: 03-03-2001, 01:12 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
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
|
Bookmarks