252
Views
8
Comments
Solved
[Advanced Excel] Date Format in Advanced Excel
advanced-excel
Service icon
Forge asset by Carlos Freitas
Application Type
Reactive

Hi I have a column which contains date and I need to change its format from general to date in excel by using advanced as I am writing excel with values and downloading it. I have date entity which has values in date data type and I am giving this values as cell values in cell_write action of advanced excel. In cell_write I have given the cell type as "datetime" and in NumberFormat I have tried multiple variations of date formats like"dd-mm-yyyy", "yyyy-mm-dd" but nothing seems to work.

Here's a screenshot of the problem as you can see the Number Format is causing the problem and I am getting custom as the format in excel instead of date.



UserImage.jpg
Moin Khan
Solution

Thanks for all the replies just resolved it  the Number Format for date should be "M/d/yyyy"

2023-10-26 15-12-53
Mohammed Rizwan

Hello Moin

I saw similar issue in forum you can check once

I have added link for your refrence.

https://www.outsystems.com/forums/discussion/48527/advanced-excel-setting-the-date-format-in-outputted-excel/

Thanks

Mohd Rizwan

UserImage.jpg
Moin Khan

Actually they have not mentioned the what to be added in the NumberFormat for getting the date as the format in excel


UserImage.jpg
Moin Khan

The formatting part is not mentioned there please help I am in urgent need

UserImage.jpg
Moin Khan

I specifically want to know what should be added in the NumberFormat Input as shown in the Image


2022-07-03 17-24-08
Sourabh sharma

Hi 

You need to change CellType into "Date" first .

and you are directly  passing the date type data to excel but excel support text format so you need to convert it in text and pass it. 

and see the format of you excel sheet also some time we fetch correct but due to format we get like you are getting #####.

do this and let me know ! 


UserImage.jpg
Moin Khan
Solution

Thanks for all the replies just resolved it  the Number Format for date should be "M/d/yyyy"

2025-01-17 13-31-26
RajasekharReddy Vuyyuru

can you share the oml file


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.