Re: date format
- To: mathgroup at smc.vnet.net
- Subject: [mg75136] Re: date format
- From: Szabolcs <szhorvat at gmail.com>
- Date: Wed, 18 Apr 2007 05:02:23 -0400 (EDT)
- References: <f015bp$9sk$1@smc.vnet.net>
On Apr 17, 2:45 am, Arkadiusz.Ma... at gmail.com wrote: > Dear All, > > Form the following date format > > 04/Dec/2006:19:54:02 > > could you please show me how to get the following representation {day, > month, year, hour, minutes, seconds} - so exactly the same as for > Date[] > > Thank you, > > Arek Use ToExpression[StringSplit["04/Dec/2006:19:54:02", Characters["/:"]]], then replace the month name by the number if you need to, like this: {4, Dec, 2006, 19, 54, 2} /. {Jan -> 1, Feb -> 2, ... } Szabolcs