Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I want to find year from this timestamp
13-Mar-2013 11:00:00 AM
how can I do so...
Thanks in anticipation
Year(TimeStamp#(Yourdate, 'DD-MMM-YYYY hh:mm: ss TT'))
Use this:
Year( Timestamp#('13-Mar-2013 11:00:00 AM', 'DD-MMM-YYYY h:mm:ss TT'))
Hi,
Use Year(DatefieldName)
Or
Subfield(DateFieldName,'-',3) as Year
or
Year(Timestamp#(DateFieldName,'DD-MMM-YYYY hh:mm:ss TT')) as Year
Regards
Hi
try like this
Year(floor(Date#('13-Mar-2013 11:00:00 AM','DD-MMM-YYYY hh:mm:ss tt'))) as Year
Replace date with datefield
Hi,
Change in Subfield() logic as
Subfield(Subfield(DateFieldName,'-',3),' ') as Year
Regards
dat:
load * Inline
[
d
13-Mar-2013 11:00:00
];
load Year(Date#(d,'DD-MMM-YYYY hh:mm:ss')) as Year Resident dat;