Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I am having a date field such as " 201-04-25T01:53:1Z" From this I need extract only Date field. I have used Purgechar(Datefield,'T,Z').
But it dint worked. Any one having idea on this
-Jay
Is there a missing 4th digit like....2014-04-25T01:53:1Z" ??
You could trythis:
date(date#( left(Datefield,10) ,'YYYY-MM-DD'))
date(date#( Datefield ,'DD-MM-YYYY'))
Hi,
Try like
date(date#(Purgechar(Datefield,'T,Z'),'YYYY-MM-DDhh:mm:s'),'YYYY-MM-DD hh:mm:ss')
Regards,
Hi
That's correct, except that PurgeChar() only takes 2 parameters, so it should read:
date(date#(Purgechar(Datefield,'TZtz'),'YYYY-MM-DDhh:mm:s'),'YYYY-MM-DD hh:mm:ss')
HTH
Jonathan
Hi,
my bad syntax error . You are write HTH.
Thanks for correction
Regards