Exporting dates from Access to CSV - remove time - ms-access

I am trying to export a simple query with dates. When I export, access wants to display the time component of the date. Stumped on how to just export date. I am using O365

Related

two kind of date formats data loaded on mysql field

A person developed a Mysql data base to migrate from access for an aplication, however, the dates in Access were saved as 'd-m-Y'. When this person loaded the access data, it was storaged in the original format, however, the new data is loaded in Mysql date format 'Y-m-d' in the same fields.
What can I do to uptade the historical data to change its format from 'd-m-Y' to 'Y-m-d'?

Importing data from MySQL to Excel

I have data in excel sheet (CSV format) and I have imported this data into Mysql and filtered the data based on dates (only 2014 and 2015) years have been selected.
The client wants data back in excel. So, I have to import the data which I had extracted based on dates into excel. I believe this would be a temporary table. So, how do we import the temporary tables to excel.
I don't know how to use mysql to excel converter in this case, as the temporary table is being used.
Here is a software by MySQL to handle that
https://www.mysql.com/why-mysql/windows/excel/
MySQL for Excel makes the task of getting MySQL data into Excel a very
easy one; there are no intermediate CSV files required, only a couple
of clicks and data will be imported to Excel. MySQL for Excel supports
importing data from tables, views and stored procedures.
The easiest way of doing this could be as follows
select <fieldnames>
from <temporary table>
Then copy and paste the results into excel. save as excel format, and voila!
Edit: if you are using a tool like phpMyamin, you can just export the results of your query into the desired format. If you want the headers, choose "include column names" in the advanced" export.
If you just need a document that opens in excel you could export the tables as a CSV file from mysql.
http://www.mysqltutorial.org/mysql-export-table-to-csv/
If you have to actually create an excel worksheet then you would have to use a library based on what programming language you are using to convert the data to an excel spreadsheet.

Facing issue in date while getting record from salesforce:mule

I am facing issue while reading data from SalesForce.
Current Scenario:
Read data from SalesForce account and store into csv file.
In SalesForce whenever we insert data at that time createdDate field store as current date. My problem is when I read data from SalesForce at that time in csv file it store current date as (createdDate+1) in few of records not in all records.
For example my date is 1/12/2015 in csv file it store 13th.
Didn't get any idea why this is happened.
My flow is
http->salesforce->data_mapper->file-outbound
This is more than probably a TimeZone issue, let's say that salesforce server is in UTC and that your computer is in GMT+4 because you are in Rusia. Any record from 22:00 or later will show up as +1 days.
Set the default timezone of Java, your system or otherwise manipulate the dates with MEL datetime functions.

MySQL Query or Excel 2010 - Which is the better way of arranging data for reports?

Info: Server version: 5.1.39 - MySQL / phpMyAdmin
Php: 5.4
Server: Apache
Code is run via: Server SQL Query (copy & paste in the phpMyAdmin) or in MySQL Workbench or using a custom shopping cart manager.
Exports to: Excel 2010 (.csv then to .xlsx for sales reports)
Hi there,
This is more a personal question, rather than a technical, however the answer should have a technical component.
Which is better? Run a full query (with calculations) in MySQL, export to Excel and work on that data OR Run a basic query and then run the calculations in Excel?
The scenario:
My sales reports are in MySQL from my online store, each month I export the data that I need and create reports in Excel with additional information. (Info not in the store).
My query has calculations, both for profit/loss & dates. I can do this in excel as well.
I am not an expert in either field, barely scraping by with help from people such as the community here and other sites, however I'd like to read some feedback from those that work with both.
I currently use things like (in addition to column calculations):
DATE_FORMAT(T5.date_purchased, '%Y-%m-%b') As OrdMonth,
DATE_FORMAT(T5.date_purchased + INTERVAL 1 MONTH, '%Y-%m-%b') As PayMonth,
concat(date_format(T5.date_purchased + INTERVAL 1 MONTH, '%y%m'), '-', T4.manufacturers_id) As RepID,
DATE_FORMAT(T5.date_purchased + INTERVAL 1 MONTH,'%y%m') As BatchID,
Which I can do in Excel with similar formulas.
So, is it better to have the report generate from the server as I want it in Excel, or just get the barest of info & run the calculations after?
Thank you in advance for your knowledge & input.
If the target user is any typical viewer of a web page, then use PHP+SQL.
If the target user is you, then get the data out as quickly as you can, then massage it with Excel.
Excel is more flexible, and functions + VBA will take you farther and faster than SQL.
In order to go more in depth with the answer I need more details.
EDIT
Here is the solution that I use very often: it is not professional, but when it's for personal use it's the fastest way:
Open both the csv file with the data to analyze and the Excel file with a VBA macro called CreateReport.xmls
Run the macro
Here is the description of the steps executed by the macro:
Scan all the open workbooks looking for the csv file (recognizing it for example by some header that is always there)
Add columns with formulas
For each report:
Duplicate the sheet
Delete the rows or columns that you don't need
Apply the formatting
If you don't know VBA there are many resources out there to get started. You can come back here when you have more specific questions.

Export Access Database to CSV

I want to export an access database to csv format. When I open up the csv file in excel the dates are messed up. I have one field with the date. The date fields is fine. I have another field with just the time. The time field is messed up. It shows 12/30/1899 with the correct time. Can any help me to get only the seconds in the second field. Thanks.
Use the following expression in the query you are using to create the data:
Format(TimeField, "hh:mm:ss AMPM")
where TimeField is the name of your field which contains the time.