Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date data type

Status
Not open for further replies.

mama16

MIS
Oct 22, 2004
125
US
Hello, you all good people.

Can you set a date data type to be just Jun-04 or May-03 and not 06-01-2004. I just want the Month and year.
I've tried to mess with the input mask and could not do it.
Can it be done? Please, help.

Thanks
 
Date/Time fields are always stored as a number in the format ddddd.nnnnn where ddddd is the day number and nnnnn is the decimal part of the day for the time.

To store it in the format you want you need to use a text field and explicitly format the date MyTextDate = Format(mydate,"mmm-yy")

 
On the other hand, if you don't care about the day part, just set it to a constant (perhaps 1) and display the date via a fomat function.



MichaelRed


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top