dmanty45 / bots

Automatically exported from code.google.com/p/bots
0 stars 0 forks source link

added utility function for date formatting/conversion using masks #73

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
usage eg:
transform.datemask('12/31/11','MM/DD/YY','20YYMMDD)
(returns '20111231')

Original issue reported on code.google.com by hjebb...@gmail.com on 16 Aug 2011 at 6:27

GoogleCodeExporter commented 8 years ago
I like this idea. Have a couple of my own functions for specific mappings but 
this is universal.

Original comment by mjg1964 on 23 Aug 2011 at 10:32

GoogleCodeExporter commented 8 years ago
yes, I also like this function a lot. 
as it is only string/pattern atching you can do a lot with it, not only dates.
I 'borrowed' this  idea  from another edi translator I used years ago.
Strange that I never implemented this in bots.

Original comment by hjebb...@gmail.com on 23 Aug 2011 at 10:46

GoogleCodeExporter commented 8 years ago

Original comment by hjebb...@gmail.com on 28 Oct 2011 at 7:09

GoogleCodeExporter commented 8 years ago

Original comment by hjebb...@gmail.com on 10 Sep 2013 at 12:44