Group Abstract Group Abstract

Message Boards Message Boards

0
|
8K Views
|
3 Replies
|
1 Total Like
View groups...
Share
Share this post:

Convert the notation of years from short to long?

Posted 5 years ago

I got date lists such as for instance {{16, 1, 4}, {16, 1, 5}, {16, 1, 6}}. How do I convert this list in an easy way to {{2016, 1, 4}, {2016, 1, 5}, {2016, 1, 6}} ?

POSTED BY: Laurens Wachters
3 Replies
Posted 5 years ago
POSTED BY: Michael Helmle
Posted 5 years ago

Hi Laurens,

DateObject can also correctly interpret that format.

DateObject[{16, 1, 4}]

enter image description here

POSTED BY: Rohit Namjoshi
POSTED BY: Laurens Wachters
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard