Dear Community,
I want to extract a year from a date but can't seem to find a working answer. If I copy the date it looks like this: 01aug2003 00:00:00
Below is a dataex of the variable:
1.3753152e+12
1.3753152e+12
1.3753152e+12
1.3753152e+12
1.3753152e+12
1.3753152e+12
1.3753152e+12
1.2334464e+12
1.2334464e+12
1.2334464e+12
1.2334464e+12
1.2334464e+12
1.5566688e+12
1.5566688e+12
1.5566688e+12
1.5566688e+12
1.5566688e+12
1.5566688e+12
1.5566688e+12
1.5566688e+12
1.5566688e+12
1.5566688e+12
1.5566688e+12
1.8893952e+12
1.8893952e+12
1.230768e+12
1.230768e+12
1.230768e+12
1.230768e+12
1.230768e+12
1.230768e+12
1.230768e+12
1.230768e+12
1.230768e+12
1.230768e+12
1.230768e+12
1.230768e+12
1.230768e+12
1.230768e+12
1.230768e+12
1.230768e+12
1.901232e+12
1.901232e+12
1.335312e+12
1.335312e+12
1.335312e+12
1.335312e+12
1.335312e+12
1.5304896e+12
1.5304896e+12
1.6102368e+12
1.6298496e+12
1.6298496e+12
1.6298496e+12
1.723248e+12
1.723248e+12
1.723248e+12
1.723248e+12
1.723248e+12
1.723248e+12
1.723248e+12
1.2845952e+12
1.2845952e+12
1.4543712e+12
1.4543712e+12
1.4543712e+12
1.4543712e+12
1.4543712e+12
1.606608e+12
1.606608e+12
1.606608e+12
1.606608e+12
1.606608e+12
1.606608e+12
1.606608e+12
1.291248e+12
1.291248e+12
1.291248e+12
1.291248e+12
1.5147648e+12
1.5147648e+12
1.5147648e+12
1.5147648e+12
1.5147648e+12
1.5147648e+12
1.5147648e+12
1.719792e+12
1.719792e+12
1.719792e+12
1.719792e+12
1.719792e+12
1.719792e+12
1.719792e+12
1.369008e+12
1.369008e+12
1.369008e+12
1.369008e+12
1.369008e+12
1.369008e+12
1.369008e+12
end
format %tc becameceo
[/CODE]
Any help would be appreciated!
I want to extract a year from a date but can't seem to find a working answer. If I copy the date it looks like this: 01aug2003 00:00:00
Below is a dataex of the variable:
1.3753152e+12
1.3753152e+12
1.3753152e+12
1.3753152e+12
1.3753152e+12
1.3753152e+12
1.3753152e+12
1.2334464e+12
1.2334464e+12
1.2334464e+12
1.2334464e+12
1.2334464e+12
1.5566688e+12
1.5566688e+12
1.5566688e+12
1.5566688e+12
1.5566688e+12
1.5566688e+12
1.5566688e+12
1.5566688e+12
1.5566688e+12
1.5566688e+12
1.5566688e+12
1.8893952e+12
1.8893952e+12
1.230768e+12
1.230768e+12
1.230768e+12
1.230768e+12
1.230768e+12
1.230768e+12
1.230768e+12
1.230768e+12
1.230768e+12
1.230768e+12
1.230768e+12
1.230768e+12
1.230768e+12
1.230768e+12
1.230768e+12
1.230768e+12
1.901232e+12
1.901232e+12
1.335312e+12
1.335312e+12
1.335312e+12
1.335312e+12
1.335312e+12
1.5304896e+12
1.5304896e+12
1.6102368e+12
1.6298496e+12
1.6298496e+12
1.6298496e+12
1.723248e+12
1.723248e+12
1.723248e+12
1.723248e+12
1.723248e+12
1.723248e+12
1.723248e+12
1.2845952e+12
1.2845952e+12
1.4543712e+12
1.4543712e+12
1.4543712e+12
1.4543712e+12
1.4543712e+12
1.606608e+12
1.606608e+12
1.606608e+12
1.606608e+12
1.606608e+12
1.606608e+12
1.606608e+12
1.291248e+12
1.291248e+12
1.291248e+12
1.291248e+12
1.5147648e+12
1.5147648e+12
1.5147648e+12
1.5147648e+12
1.5147648e+12
1.5147648e+12
1.5147648e+12
1.719792e+12
1.719792e+12
1.719792e+12
1.719792e+12
1.719792e+12
1.719792e+12
1.719792e+12
1.369008e+12
1.369008e+12
1.369008e+12
1.369008e+12
1.369008e+12
1.369008e+12
1.369008e+12
end
format %tc becameceo
[/CODE]
Any help would be appreciated!
Comment