Zum Hauptinhalt gehen

FeatureSet to XLSX - date field type problem

Kommentare

4 Kommentare

  • Permanently deleted user

    Hi Michael, 

     

     

     

    Yes, by default all columns are added to the Excel spreadsheet as a string whose field type is just "General". There was a case filed with our developers about fixing the date column specifically in the Excel spreadsheet so that at least the date showed up properly. However, since there were not enough stakeholders to support this case, it was resolved as "Won't fix". So at this point, I would recommend adding this to the Ideas Board so more people can vote on this issue. If it receives enough votes, then the developers will implement it in a future release. 

     

     

     

    For now, the only thing that you can do is manually change the column type to date yourself by highlighting the entire column and then changing the column type from "General" to a date type and all your dates should show up properly. 

     

     

     

    I hope this helps, 

     

    Carmen
    0
  • Kathy Andersen
    Michael,

     

    To reformat the dates before exporting to Excel, I usually create a table and then loop through the rows, reformatting each date field using an assign activity:

     

    myDataTable.Rows(rowIndex).Item("MyDateField") = Format(myDataTable.Rows(rowIndex).Item("MyDateField"),"Short Date")

     

    A bit of work if there are a lot of date fields, but makes our users happy.  :)

     

    Kathy
    1
  • Permanently deleted user
    Kathy,

     

    Thank you so much. Works perfectly.

     

    Mike
    0
  • Permanently deleted user
    Kathy,

     

    Is the Format in your assign a variable that assigns the date format type?

     

    Also, did you put the assign in a For Each Loop?

     

    Do you mind sharing the part of your workflow that you got this working?

     

    Thanks!

     

    Cody

     

     
    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.