Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
No time component, just the date. This seems a bit much. Is this how
it's done? Dim dt As Date: dt = Now() Dim justDate As Date: justDate = DateValue(DatePart("m", dt) & "/" & DatePart("d", dt) & "/" & DatePart("yyyy", dt)) |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Am Sat, 23 Mar 2013 07:08:11 -0700 (PDT) schrieb oldyork90: No time component, just the date. This seems a bit much. Is this how it's done? with Date you get only the date of today: dt=Date Regards Claus Busch -- Win XP PRof SP2 / Vista Ultimate SP2 Office 2003 SP2 /2007 Ultimate SP2 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try
Dim myDate as String TheDate = Now() MyDate = Format(TheDate, "M/D/YYYY") HTH Mick. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Le 23/03/2013 15:57, Claus Busch a écrit :
Hi, Am Sat, 23 Mar 2013 07:08:11 -0700 (PDT) schrieb oldyork90: No time component, just the date. This seems a bit much. Is this how it's done? with Date you get only the date of today: dt=Date Or, for any date in dt: justDate=Int(dt) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Unvaried date as part of a formula | Excel Discussion (Misc queries) | |||
DATE as part of a formula | Excel Discussion (Misc queries) | |||
Date & Phone Manipulation, Part 2 | Excel Discussion (Misc queries) | |||
Extracting Part of a Date | Excel Discussion (Misc queries) | |||
Look up part of a date | Excel Worksheet Functions |