Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default please explain

Try this...

dayofweek = Format(30 - 4 - 2009, "Dddd")
--
HTH...

Jim Thomlinson


"sunilpatel" wrote:

dayofweek = WeekdayName(Weekday(30 - 04 - 2009))

why is Friday returned not Thursday.



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default please explain

I think that's a coincidence:

msgbox format(5 - 1 - 2009, "dddd")
returns
Wednesday



Jim Thomlinson wrote:

Try this...

dayofweek = Format(30 - 4 - 2009, "Dddd")
--
HTH...

Jim Thomlinson

"sunilpatel" wrote:

dayofweek = WeekdayName(Weekday(30 - 04 - 2009))

why is Friday returned not Thursday.




--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Not sure how to explain.... Tricia LeAnn[_2_] Excel Discussion (Misc queries) 12 January 18th 08 08:14 PM
How to explain??... tagr Excel Discussion (Misc queries) 2 March 18th 06 04:34 AM
Let me see if I can explain this... jsc3489 Excel Worksheet Functions 0 July 22nd 05 05:04 PM
Can someone explain to me? Pls? stevetan2010[_5_] Excel Programming 1 November 16th 04 10:37 AM
Can someone explain to me? Pls? stevetan2010[_4_] Excel Programming 3 November 16th 04 09:18 AM


All times are GMT +1. The time now is 01:32 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"