OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Text function returns wrong day when converting

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc
View previous topic :: View next topic  
Author Message
Skeptical
Newbie
Newbie


Joined: 30 Jan 2011
Posts: 1

PostPosted: Sun Jan 30, 2011 2:12 pm    Post subject: Text function returns wrong day when converting Reply with quote

Just to make this simple assume the following:

A1 contains the day January 23, 2011 formatted as 2011-01-23 (which is a Sunday)

A2 contains the formula =day(a1) and correctly displays 23 (not going to be used, just put this in for testing)

A3 contains the formula =text(day(a1); "dddd") and incorrectly displays Monday

Huh?

Edit: Disregard, changed to =text(a1; "dddd") and it worked. Now if only working with dates wasn't so complicated and the help so unhelpful maybe this problem wouldn't crop up.
Back to top
View user's profile Send private message
Villeroy
Super User
Super User


Joined: 04 Oct 2004
Posts: 10106
Location: Germany

PostPosted: Sun Jan 30, 2011 2:25 pm    Post subject: Reply with quote

Working with dates and times is extremely easy once you understand that they are nothing but numbers on a time scale.
_________________
Rest in peace, oooforum.org
Get help on https://forum.openoffice.org
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group