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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

insert date part

Status
Not open for further replies.

nomu26

Programmer
Sep 10, 2003
22
ZA
i'm trying to insert part of the date in the database using the function 'DATEPART' with no success i only want to insert the day part not the whole date....
Please help i need to do this urgently

Thanks in advance
 
Why dont u use an Integer field and insert the part you want.

Rob
 
if you only need the day, make the field of type numeric and add constraints... then insert it as a number
 
can you give me an example then????
 
if your object is of DateTime type then you can get the day by using myDateTime.Day
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top