Hi H,

.Text = bad

:)

If you mean that the date is on the worksheet as text insead of as a
date(dateserial). if the date matches the system local settings (i.e. date
is in m/d/y format, your computer is set to m/d/y format) you can just use
any of the methods I listed in my last post without any changes.  If the
date is textual, it will be coerced automatically to a dateserial for use by
the format or worksheetfunction.text functions, i.e.:

Format(Thisworkbook.Sheets(RawData).Cells(count, BarDate).Value2,"dddd")

 

If the date is in text format, and the format is different from your system
locale, there are various approaches for parsing the dates, either one at a
time in this routine, or en masse on the worksheet first.

 

Asa

 

From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com]
On Behalf Of tangledweb
Sent: Tuesday, June 26, 2012 8:47 PM
To: excel-macros@googlegroups.com
Subject: $$Excel-Macros$$ Can I get the day of the week (e.g. Friday) from
the date already encoded in a string?

 

If I already have Sheets(RawData).Cells(count, BarDate).Text having a value
like 6/26/2012 is there a way to get the day of the week as a number or
string for that date that does not require splitting it into its parts and
feeding them to some function?  If the latter the .net examples I found for
that did not make sense to me so how is it done? 

-- 
-- 
FORUM RULES (986+ members already BANNED for violation)
 
1) Use concise, accurate thread titles. Poor thread titles, like Please
Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will
not get quick attention or may not be answered.
 
2) Don't post a question in the thread of another member.
 
3) Don't post questions regarding breaking or bypassing any security
measure.
 
4) Acknowledge the responses you receive, good or bad.
 
5) Cross-promotion of, or links to, forums competitive to this forum in
signatures are prohibited. 
 
NOTE : Don't ever post personal or confidential data in a workbook. Forum
owners and members are not responsible for any loss.
 
----------------------------------------------------------------------------
--------------------------
To post to this group, send email to excel-macros@googlegroups.com
 
To unsubscribe, send a blank email to
excel-macros+unsubscr...@googlegroups.com
 
 

-- 
FORUM RULES (986+ members already BANNED for violation)

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.

2) Don't post a question in the thread of another member.

3) Don't post questions regarding breaking or bypassing any security measure.

4) Acknowledge the responses you receive, good or bad.

5)  Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 

NOTE  : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.

------------------------------------------------------------------------------------------------------
To post to this group, send email to excel-macros@googlegroups.com

To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com

Reply via email to