Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I'm trying to pull only the year from this date. The date format is: 01/01/1947 0:00:00
What code statement would I use to pull only the year?
try like that
year(Date('01/01/1947 0:00:00','MM/DD/YYYY h:mm:ss')) or
year(Date(YourDatefield,'MM/DD/YYYY h:mm:ss'))
hope this helps
How about this?
Load ..., Year(Date) as Year from Table where Year(Date) = 1947;
I've tried all of these below and it's not pulling anything. I'm getting confused.
Could it be the AM that is throwing it off? If so, how would I include the AM portion to the code statement?
1/14/1953 12:00:00 AM
You can define it as tt for AM and TT for PM ??
can u prepare and upload a sample qvw including your date field?
Try this:
year(floor(YourDatefield))
Another thing,
Where are you doing this? in the load where you connecto to the DB? If yes, do it from a resident table!