Return just Date: 30/01/2011 21:05:00

Minkowski

Board Regular
Joined
Sep 16, 2009
Messages
157
hello everyone

30/01/2011 21:05:00

which function can i use to get the 30/01/2011 only?

thanks in advance!
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
If you want/need the date value one function you could use is INT.

That gets rid of the decimal part (the time) and returns the integer part (the date).
 
Upvote 0
actually i wanted this more for access

so i went with:
Code:
Date: Format([date],"dd/mm/yyyy")
it looks ok

Norie this doesn't work for me:
Code:
=INT(30/01/2011  21:05:00)

it says the formula contains an error
 
Upvote 0
INT will work in Access too.

INT([datefield])

If this is actually for Access though, and all you are concerned with is how the date is displayed you don't need any formula.

Just select the format you want for the field's properties in design view of the table in comes from.

If it's on a form or report that format should carry through but if it doesn't you can just use the Format property of the control that's displaying the field.

PS You should avoid using Date for a field name or alias, Date is a function that, well, returns the current date.:)
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,297
Members
452,903
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top