Type mismatch error using DateTimeFormat function
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I am using the following function in a Mult_Field Formula tool: DateTimeFormat([_CurrentField_],"%d/%m/%Y")
I'm getting the following error: "Type mismatch. Number provided where a string is required."
This error appears immediately after entering in the function, even before I've picked a field.
It occurs after I pick a field(which is a date type).
It occurs after picking multiple fields(which are date types).
Any ideas/fixes on this?
Thanks for any help!!
-C
Solved! Go to Solution.
- Labels:
- Expression
- Help
- Preparation
- Transformation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@csh8428 select the change output type to string and try again?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@binu_acs Same error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@csh8428 I just noticed that, if you add toString([_CurrentField_]) function the error will not show
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Had to use 2 multi-field tools.
1: Convert the date fields to string fields
2: Convert format of string fields from step 1 to dd/mm/yyyy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
can you share screenshots or the formulas you used to solve?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@GavriloPrincip This was so long ago I don't remember which workflow I needed this for or the data-set I was trying to change.

