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

Save as CSV is not exporting my formatted dates correctly

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


Joined: 01 Mar 2006
Posts: 1

PostPosted: Wed Mar 01, 2006 12:45 pm    Post subject: Save as CSV is not exporting my formatted dates correctly Reply with quote

I have formatted my dates a certain way on purpose (I'm importing this CSV into a database). I need the dates in a specific format. However, even after changing the format in OpenOffice 2, It is still exporting that field in a different format when I save it as a CSV.

I assume this is because of the way formatting works (its meant to change the display, not the data), but I need it to change the data. Does anyone know how to accomplish this?

Thanks
Back to top
View user's profile Send private message
denmarks
OOo Enthusiast
OOo Enthusiast


Joined: 01 Mar 2006
Posts: 125
Location: Chico, CA

PostPosted: Wed Mar 01, 2006 1:57 pm    Post subject: Reply with quote

Formatting is lost when a date is saved as CSV. You can try the following. Insert this formula to the right of the cells with the dates. =TEXT(A1;"MMM D, YYYY"). Change the formatting and cell reference as desired. This will create a text field based on the original date that will save okay in a CSV file.
_________________
Dennis Marks
Back to top
View user's profile Send private message Visit poster's website
probe1
Moderator
Moderator


Joined: 18 Aug 2004
Posts: 2478
Location: Chonburi Thailand Asia

PostPosted: Wed Mar 01, 2006 2:57 pm    Post subject: Reply with quote

Date cells from Calc exports according the "Locale setting" (in: Tools->Options...->Language Settings->Language).

Which date format you would like? You can change just for export...
_________________
Cheers
Winfried
My Macros
DateTime2 extension: insert date, time or timestamp, formatted to your needs
Back to top
View user's profile Send private message Visit poster's website
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