Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
johnan
Creator III
Creator III

Date issue

Hi All!

I have a date field: 90915 (numeric)

I Want to convert to 2009-09-15

Can i do that?

1 Solution

Accepted Solutions
Not applicable

Hi,

Something like this: date(date#(Num(DATE,'000000'),'YYMMDD')) as Date

But what about 2010? Will it be displayed like this: 100915?
Use the function in your script. 😉

Greetz
Robbie

View solution in original post

6 Replies
Not applicable

Hi Johnan,

use this: date(90915, 'YYYY-MM-DD');

But 90915 is not 2009-09-15 but 2148-11-29

Rey-man

johnan
Creator III
Creator III
Author

Yes, iknow.
I think we have to convert and not use date function? Or the first zero in year will doit?

Not applicable

Hi,

Something like this: date(date#(Num(DATE,'000000'),'YYMMDD')) as Date

But what about 2010? Will it be displayed like this: 100915?
Use the function in your script. 😉

Greetz
Robbie

johnan
Creator III
Creator III
Author

That doit it 🙂
and 2010 woks.
Can i do this with a timefield to?

93126
09:31:26

Not applicable

Hi,

For time tyr this: time(time#(Num(F2,'000000'),'hhmmss')) as Time

Greetz
Robbie

johnan
Creator III
Creator III
Author

Thanx, this works!Stick out tongue