Restored from previous forum. Originally posted by fred.
Hello James,
The problem with date is you never get the format you want when you have to deal with. The mask method allow to quickly format the date in your own. And the reverse way works the same (ParseDate()). For example, if you have to retrieve dates in a log file which are in dd/mm/yy and another in mm/dd/yyyy format, with standard method it's a bit the hell. Here you just specify the mask and all is done automatically. But I agree it's not that easy.. I just think it worth the few time of learning . Thanks for your snippet BTW !
Restored from previous forum. Originally posted by Pupil.
One way would be to specify the most used date formats as PB constants for the really lazy ones benefit.. so you could just do like this:
FormatDate(#PB_Date_ymd, date())