# Split DateTime column into separate Date and Time Columns

**URL:** <https://discourse.julialang.org/t/split-datetime-column-into-separate-date-and-time-columns/80228>\
**Category:** General Usage\
**Tags:** dataframes\
**Created:** [April 28, 2022, 8:07pm UTC](https://discourse.julialang.org/t/split-datetime-column-into-separate-date-and-time-columns/80228 "2022-04-28T20:07:25Z")\
**Posts on this page:** 1\
**Page:** 2

<div class="post-metadata">

**Author:** ![bkamins](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bkamins/32/208538_2.png) [@bkamins](https://discourse.julialang.org/u/bkamins)\
**Post date:** [April 30, 2022, 6:39am UTC](https://discourse.julialang.org/t/split-datetime-column-into-separate-date-and-time-columns/80228/21 "2022-04-30T06:39:03Z")

</div>

> [@phantom](#):
>
> the assignment `F = hcat(G,F)` as a stand alone line would bind G to the original DataFrame F.

This operation does two things:

1. `hcat(G, F)` creates a new value (not changing values bound to `G` or `F`).
2. bind this new value to variable `F` (thus overwriting the old binding).

So the value originally bound to `F` is not changed by this operation (but `F` after the operation will be bound to the new value).

The crucial thing you need to remember is that in Julia only values can be mutated (if they support mutation). Variables are never mutated. Variable names are only bindings to values.

[Previous page](https://discourse.julialang.org/t/split-datetime-column-into-separate-date-and-time-columns/80228.md?page=1)
