
Contributor III
2019-03-25
04:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
problem with Timestamp
Hi,
I have a problem converting a field (Create Date) to timestamp, as it is swapping year and Day.
Using an example from this table, 01-03-19 16:14 should be converted to 01/03/2019 16:14:00, where 01 is day and 19 is year, but it is converting to 2001/03/19 16:14:00
I tried changing parameters from main section in script, but it didn't work either
Can anyone help with this issue pls?
Thanks in advance,
Jose
1,194 Views
1 Solution
Accepted Solutions

Partner Ambassador/MVP
2019-03-25
04:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try this.
Load *, Timestamp(Timestamp#([Create Date],'MM-DD-YY hh:mm'),'YYYY/MM/DD hh:mm:ss') as NewField
From XYZ;
Regards,
Kaushik Solanki
Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
1,189 Views
3 Replies

Partner Ambassador/MVP
2019-03-25
04:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try this.
Load *, Timestamp(Timestamp#([Create Date],'MM-DD-YY hh:mm'),'YYYY/MM/DD hh:mm:ss') as NewField
From XYZ;
Regards,
Kaushik Solanki
Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
1,190 Views

Contributor III
2019-03-25
05:00 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Worked perfect.
Thanks for your help Kaushik!
Thanks for your help Kaushik!
1,184 Views

Partner Ambassador/MVP
2019-03-25
05:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Good to hear that.
Cheers.
Regards,
Kaushik Solanki
Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
1,175 Views
