- Minitab Cookbook
- Isaac Newton
- 231字
- 2021-07-16 12:29:19
Extracting values from a date/time column
Often, it can be useful to find values such as day, month, or hour of the day from a date column. This can help later on while trying to find out about the variation in our results, finding effects based on day of the week or month of the year.
Getting ready
The data column displayed in the following screenshot shows dates in the mm/dd/yyyy format. To run this recipe, type the following data into a new column and label the column as Date
. We will then create a new column displaying the months from the dates.

How to do it…
The following steps will create a column for the month from the dates in the worksheet:
- Navigate to Data | Extract from Date/Time | Extract to Text.
- In the dialog box, enter the date column in the Extract from date/time column section. Enter
Month
into the Store text column in section. - Tick the Month selection and click on OK.
How it works…
If the worksheet does not contain a column called Month
already, it will create a new column for us. The selected fields will then populate this column in the worksheet. The Extract to Text option will create months and days of the week by their names, where the Extract from date/time to Numeric option will create a column of numbers.
- 自愿審計(jì)動機(jī)與質(zhì)量研究:基于我國中期財(cái)務(wù)報告審計(jì)的經(jīng)驗(yàn)證據(jù)
- 金融科技(FinTech)發(fā)展的國際經(jīng)驗(yàn)和中國政策取向(中國金融四十人論壇書系)
- 資本的眼睛
- EViews10.0的應(yīng)用與計(jì)量分析
- Securing Hadoop
- 大數(shù)據(jù)搜索與挖掘及可視化管理方案 :Elastic Stack 5:Elasticsearch、Logstash、Kibana、X-Pack、Beats (第3版)
- Microsoft System Center Data Protection Manager 2012 SP1
- 從零開始學(xué)房地產(chǎn)會計(jì)
- 企業(yè)并購審查中的相關(guān)市場界定:理論與案例
- 2017年度注冊會計(jì)師全國統(tǒng)一考試專用教材(圖解版):審計(jì)
- Getting Started with Oracle Tuxedo
- Oracle Primavera Contract Management,Business Intelligence Publisher Edition v14
- 統(tǒng)計(jì)學(xué)理論前沿(谷臻小簡·AI導(dǎo)讀版)
- 圖解經(jīng)濟(jì)博弈論(圖解經(jīng)濟(jì)學(xué)叢書)
- 政府采購評審專家工作指南