Cambio de formato de excel a formulario

Description

Hola!!!

Estoy ejecutando un excel para que en cada fila se coloque en los campos correspondientes del formulario. Pero cuando se escribe los que tienen formato fecha se escribe de manera diferente.

Por ejemplo en el excel tiene la fecha 22/07/2024 pero lo pasa en el formulario 07/22/2024 y debe ser DD/MM/AA pq en el momento de guardar la información del formulario fenera error.

Que podrá estár pasando? Pq lo escribe de manera diferente a como la tengo en el excel?

Link

Date

2024-07-11

Related UiPath products

StudioX

Hi @Maria_Alejandra_Hurtado_P ,

This issue occurs because of the difference in date format settings between Excel and the application where you are inputting the data. By default, Excel might store and display dates in the format configured in your system’s regional settings, which might be different from what the form expects.

Detailed Steps:

  1. Add Excel File Activity:
  • Drag and drop the Use Excel File activity and select your Excel file.
  1. Add For Each Row Activity:
  • Inside the Use Excel File activity, add the For Each Row in Excel activity to iterate through each row.
  1. Get Date from Excel:
  • Inside the loop, use Get Row Item to get the date value.
  • Store the date value in a variable, e.g., excelDate.
  1. Format Date:
  • Add an Assign activity to format the date.

plaintext

Copy code

formattedDate = DateTime.ParseExact(excelDate.ToString(), "MM/dd/yyyy", System.Globalization.CultureInfo.InvariantCulture).ToString("dd/MM/yyyy")
  1. Input Form Field:
  • Use the Type Into activity to input the formattedDate into the form field.

Regards
Sandy

Hola, parece que estás enfrentando un problema con el formato de fecha al leer datos desde Excel y pasarlos a un formulario. Este problema comúnmente ocurre debido a las configuraciones regionales y de formato de fecha diferentes entre Excel y la aplicación en la que estás ingresando los datos.