Returned Date Format - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: Returned Date Format (/Thread-Returned-Date-Format) |
Returned Date Format - mv8167 - 07-01-2011 I have the following code: Code: eDate = DateAdd("d",-1,Now()) which returns the value 6/29/2011 but I need the zero in front of the six. I need 06/29/2011 returned. Any ideas is this is possible? thx for looking. RE: Returned Date Format - rajpes - 07-04-2011 Code: eDate = DateAdd("d",-1,Date) RE: Returned Date Format - mv8167 - 07-06-2011 Rajpes, Thx again... Your solution is way easier then my final solution: Code: TodayDateMinusOne = DateAdd("d",-1,Now()) lol RE: Returned Date Format - rajpes - 07-06-2011 ya, you don't need to complicate so much, just use simple logic |