Date Switching
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
10-08-17 04:00 PM
Hi
I am having an issue with dates in object studio.
I am adding a CSV file to a collection (One important field in the CSV file is a date) and when the data transfers over BP switches the day and month around. E.g. A date of 10/08/2017 becomes 08/10/2017.
I don't really want to change the data type to text as I am running a decision which needs to look at dates within a range and compares it to the date in the collection. With the day and month switching this makes the date range decision unusable.
Any ideas how to rectify this?
Thanks
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
10-08-17 04:22 PM
I am guessing there is a local environment setting that is impacting your dates so some kind of US/UK convesion is occuring.
To ensure the date is held as you want it you could convert it from the text field using the MakeDate function - where you specify exactly how to build the date.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
10-08-17 05:29 PM
Thanks Denis I will give it a try
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
10-08-17 09:20 PM
Update*
I have tried bringing the data into a collection as Text but BP is still switching the date around to US format.
When I run my initial report it exports the date values as dates when it writes to a CSV file. I then use BP MS Excel VBO Object to add to a collection where I have set each field value in the collection as text.
Any further ideas?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
21-08-17 02:38 PM
HI James,
Use MakeDate function or Format Date function to use it the way you want.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
22-08-17 02:37 PM
Hi JamesWilliams,
Format date function in calculation stage is useful. Try it once
