Skip to main content
Question

DateTimeConverter

  • March 27, 2023
  • 2 replies
  • 37 views

checcosisani
Contributor
Forum|alt.badge.img+12

Hi

I need to obtain as output the time %H:%M:%S but without the decimal for second

So the final result must be 11:05:01 instead of 11:05:01.002

 

image 

thx

 

Francesco

2 replies

david_r
Celebrity
  • 8392 replies
  • March 27, 2023

Unfortunately you cannot get a timestamp without decimal seconds, but you can use a StringReplacer to remove them with the following regular expression:

\.\d*$

 

image


checcosisani
Contributor
Forum|alt.badge.img+12
  • Author
  • Contributor
  • 66 replies
  • March 27, 2023

Hi David

thx I've already found this workoraund in the forum so I'll use it.

 

Francesco