Thank you very much for the details and my apologies for being away for a while.
Swelling of legs or edema can be due to various reasons.
Any long standing problem with kidneys,liver and heart can cause it.
Another important reason is chronic venous insufficiency(CVI) of the legs due to leaky valves which can give rise to what we call venous or stasis edema.
Amlodipine is also well known to cause fluid retention and swollen ankles
With a history of diabetes it needs to be investigated
An internist/Medical specialist should be first one to contact as he/she will evaluate from broader perspective rather than focusing on one organ system.
Some basic tests like liver and kidney function tests,An EKG,Chest-X-Ray.Echocardiogram,Urine examination and doppler ultrasound of legs(If any suspicion of leaky veins on examination)would rule out almost all major reasons.
A thyroid check in addition would be invaluable
Till that time my suggestion would be to take rest and try to keep feet above ground level as much as possible.
Try to limit your salt intake till then as it promotes fluid retention.
You may need to add a water pill like lasix depending upon your evaluation and results
Here is useful link which will not only give you further information
Please feel free for any follow up query
Please don't forget to leave your feedback after hitting
ACCEPT button so I can get credit for the assist