SOLVED
Replace characters using multifield formula tool
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
ikaykris
5 - Atom
‎02-25-2023
02:39 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I have V_String data like "2015-01-01 2400" in multiple columns and I want to turn it into datetime format, but because the time is 2400 instead of 0000 for midnight it's giving me an error. I want to change the time to 0000 and add a day to the date and then turn it into datetime format. Any help would be much appreciated. Thank you.
Solved! Go to Solution.
Labels:
- Labels:
- Date Time
2 REPLIES 2
binuacs
21 - Polaris
‎02-25-2023
02:44 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
‎02-25-2023
03:38 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thank you for the help! I used part of what you sent me and solved it myself : D
I used
IF CONTAINS([_CurrentField_],"2400") THEN DateTimeAdd(DateTimeParse([_CurrentField_],'%Y-%m-%d'),1,'day') ELSE DateTimeParse([_CurrentField_],'%Y-%m-%d %H%M') ENDIF
Cheers!
