112
Views
14
Comments
Solved
Generate Date to yyyy/MM/dd
Question
Application Type
Reactive
Service Studio Version
11.54.41 (Build 63060)
Platform Version
11.25.0 (Build 41743)

I have a button that generate excel with date added but there's a problem my logic to the date format is correct "yyyy/MM/dd" but when it comes to generating, the date and month only move. is this an error? or are there any solution to this error?

 

my  format date:


the output when i generate it to excel:


2025-01-09 14-56-57
IQ78
Solution

Hi, try set the control panel or keep the cell in text data structure by adding single quote in front "'":

UserImage.jpg
budang haba

Yes, even though that i change the format date the excel will still follow their format so that's that. and im trying to use the  "" so that excel will not read it as a date

2023-02-06 13-52-11
Rohit Dharampurikar
Solution

Hi budang

You can do it like this

2021-06-03 11-03-21
Anubhav Rai

Hi @budang haba ,
where are you doing the above date formatting?
Is it during record list to Excel functionality?


Regards,


UserImage.jpg
budang haba

yes

2021-06-03 11-03-21
Anubhav Rai

The above Excel output date format is just the default format of MS Excel, if there is a requirement for the specific format then you will need to create an Excel template with the column date formatted as per your requirement and then add it to your resource folder.
and with the help of advanced excel forge component, you will be able to achieve your result.

Check this link
https://www.outsystems.com/forums/discussion/89122/excel-resource-calculate/


Let me know if you have more queries.


Regards,

UserImage.jpg
Sudarshan HD

Hi,

Hope your using format datetime function while uploading data to your Excel like below SS


UserImage.jpg
budang haba

i dont use any forge here where is this ?

UserImage.jpg
Sudarshan HD

Not forge  component before appending  Your record list to excel  use format datetime function to the field where you want  "yyyy/mm/dd " format or else you can use "Advance xl" forge component  so that you can alter how ever you want.

UserImage.jpg
budang haba

i actually tried that but it didnt work

2023-05-23 04-55-55
Wasimkhan Syed Abuthahir

Hi,

I think its an excel behavior. I hope you are referring to the date which was highlighted in the below image. If so, you need to change cell format in excel. If you want to customize the excel, you can use Advanced excel forge component.

https://www.outsystems.com/forge/component-overview/355/advanced-excel


Regards,

Wasimkhan S

UserImage.jpg
budang haba

i dont use advance excel

2023-02-06 13-52-11
Rohit Dharampurikar
Solution

Hi budang

You can do it like this

2023-02-06 13-52-11
Rohit Dharampurikar




you can change format as per your requirement.

If you have any doubt feel free to ask.

Regard 

Rohit

UserImage.jpg
budang haba

It Actually worked thanks!

2025-01-09 14-56-57
IQ78
Solution

Hi, try set the control panel or keep the cell in text data structure by adding single quote in front "'":

UserImage.jpg
budang haba

Yes, even though that i change the format date the excel will still follow their format so that's that. and im trying to use the  "" so that excel will not read it as a date

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