Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
ilanbaruch
Specialist
Specialist

date formats

hi all 

based on same field i am creating to date fields one is ok and the other add a '0' prefix.. 

date(datefield ,'YYYYYMMDD hh:mm:ss')

retrieves :

1. 020181026 14:41:28

2. 20181030 17:22:03

any ideas ?

Labels (3)
1 Solution

Accepted Solutions
Gysbert_Wassenaar

Why are you using five Y's instead of the usual four in your date format string?

talk is cheap, supply exceeds demand

View solution in original post

3 Replies
Gysbert_Wassenaar

Why are you using five Y's instead of the usual four in your date format string?

talk is cheap, supply exceeds demand
haupenthals
Contributor III
Contributor III

Something like this?

=date(date#('020181026 14:41:28' ,'YYYYYMMDD hh:mm:ss'), 'YYYYMMDD hh:mm:ss')

ilanbaruch
Specialist
Specialist
Author

Thank you for your enlightenment!