Skip to main content
Solved

date conversion


Forum|alt.badge.img+1

Hi Everyone  

How to convert date format from dd/MMM/yyyy to dd/MM/yyyy?

Example:

06/Oct/2023 to 06/10/2023?

Best answer by sannath.k

@suganya You can use and go with the custom logic like python scripts for the date format conversion. Else use datetime to string command where you can select date formats or use custom format according to the time zone.

 
View original
Did this topic help answer your question?

4 replies

Forum|alt.badge.img+4
  • Navigator | Tier 3
  • 18 replies
  • Answer
  • October 26, 2023

@suganya You can use and go with the custom logic like python scripts for the date format conversion. Else use datetime to string command where you can select date formats or use custom format according to the time zone.

 

Zaid Chougle
Navigator | Tier 3
Forum|alt.badge.img+15
  • Navigator | Tier 3
  • 217 replies
  • October 26, 2023

Hi @suganya ,

You can use Date time to String action under Date package : Refer below screenshot for your reference. 

 


Forum|alt.badge.img+1
  • Author
  • Cadet | Tier 2
  • 1 reply
  • October 26, 2023

@sannath.k @Zaid Chougle Thanks.

But datetime package throws exception.

 my input '26/Oct/2023' , custom format dd/MMM/yyyy

 


Forum|alt.badge.img+4
  • Navigator | Tier 3
  • 18 replies
  • October 27, 2023

@suganya You need to take input variable as Datetime variable then you can get result else choose system default date $System:Date$ variable.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings